We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ac382a commit 9a30535Copy full SHA for 9a30535
Services/SessionService.qml
@@ -339,6 +339,7 @@ Singleton {
339
if (SettingsData.loginctlLockIntegration) {
340
syncLockBeforeSuspend()
341
}
342
+ syncSleepInhibitor()
343
344
345
@@ -407,7 +408,7 @@ Singleton {
407
408
if (!DMSService.apiVersion || DMSService.apiVersion < 4) return
409
410
DMSService.sendRequest("loginctl.setSleepInhibitorEnabled", {
- enabled: SettingsData.loginctlLockIntegration
411
+ enabled: SettingsData.loginctlLockIntegration && SettingsData.lockBeforeSuspend
412
}, response => {
413
if (response.error) {
414
console.warn("SessionService: Failed to sync sleep inhibitor:", response.error)
0 commit comments