lock: do not autostart after crash

This commit is contained in:
end-4
2025-09-30 07:45:10 +02:00
parent 4a40ce5646
commit 0b36e2a833
+9 -1
View File
@@ -30,7 +30,15 @@ Singleton {
Connections {
target: Config
function onReadyChanged() {
if (Config.ready && Config.options.lock.launchOnStartup) {
if (Config.options.lock.launchOnStartup && Config.ready && Persistent.ready && Persistent.isNewHyprlandInstance) {
GlobalStates.screenLocked = true;
}
}
}
Connections {
target: Persistent
function onReadyChanged() {
if (Config.options.lock.launchOnStartup && Config.ready && Persistent.ready && Persistent.isNewHyprlandInstance) {
GlobalStates.screenLocked = true;
}
}