mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-29 14:37:47 -04:00
idle: remove lock before suspend, manually triggered
- depend on our dbus service telling us to lock
This commit is contained in:
1 parent
30ca1fb14f
commit
5c81646397
1 file changed
-8
@@ -192,14 +192,6 @@ Singleton {
|
||||
}
|
||||
|
||||
function suspend() {
|
||||
if (SettingsData.lockBeforeSuspend) {
|
||||
DMSService.lockSession(response => {
|
||||
if (response.error) {
|
||||
console.warn("Lock: Failed to call loginctl.lock:", response.error)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
if (SettingsData.customPowerActionSuspend.length === 0) {
|
||||
Quickshell.execDetached([isElogind ? "loginctl" : "systemctl", "suspend"])
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user