1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -05:00

Fix lock before suspend

This commit is contained in:
bbedward
2025-10-09 14:44:55 -04:00
parent b06e48a444
commit 065dddbe6e

View File

@@ -136,6 +136,15 @@ Singleton {
}
}
Connections {
target: SessionService
function onPrepareForSleep() {
if (SessionData.lockBeforeSuspend) {
root.lockRequested()
}
}
}
Component.onCompleted: {
if (!idleMonitorAvailable) {
console.warn("IdleService: IdleMonitor not available - power management disabled. This requires a newer version of Quickshell.")