1
0
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:
jbwfu
2026-06-09 11:53:43 +08:00
committed by GitHub
parent d08c7c5e55
commit 9111e4809d
+2
View File
@@ -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();
} }