1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 14:32:52 -05:00

Some lockscreen restructure

This commit is contained in:
bbedward
2025-10-09 11:30:02 -04:00
parent 5e2371c2cb
commit e32622ac48
3 changed files with 44 additions and 78 deletions

View File

@@ -366,6 +366,8 @@ Singleton {
}
function updateLoginctlState(state) {
const wasLocked = locked
sessionId = state.sessionId || ""
sessionPath = state.sessionPath || ""
locked = state.locked || false
@@ -384,6 +386,12 @@ Singleton {
prepareForSleep()
}
if (locked && !wasLocked) {
sessionLocked()
} else if (!locked && wasLocked) {
sessionUnlocked()
}
loginctlStateChanged()
}
@@ -483,10 +491,4 @@ Singleton {
}
}
Process {
id: lockSessionFallback
command: ["loginctl", "lock-session"]
running: false
}
}