We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62b7492 commit 44bc311Copy full SHA for 44bc311
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