mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-10 05:03:28 -04:00
fix(powermenu): close control center on lock and power actions (#2598)
This commit is contained in:
@@ -1140,6 +1140,7 @@ Item {
|
|||||||
id: powerMenuModal
|
id: powerMenuModal
|
||||||
|
|
||||||
onPowerActionRequested: (action, title, message) => {
|
onPowerActionRequested: (action, title, message) => {
|
||||||
|
PopoutService.closeControlCenter();
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case "logout":
|
case "logout":
|
||||||
SessionService.logout();
|
SessionService.logout();
|
||||||
@@ -1160,6 +1161,7 @@ Item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onLockRequested: {
|
onLockRequested: {
|
||||||
|
PopoutService.closeControlCenter();
|
||||||
lock.activate();
|
lock.activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user