mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-09 06:58:29 -04:00
@@ -211,10 +211,7 @@ Scope {
|
|||||||
function onSessionResumed() {
|
function onSessionResumed() {
|
||||||
if (!shouldLock || sessionLock.locked)
|
if (!shouldLock || sessionLock.locked)
|
||||||
return;
|
return;
|
||||||
log.warn("Session lock dead after resume - re-locking");
|
resumeRelockTimer.restart();
|
||||||
resetLockRetry();
|
|
||||||
lockRetryPending = true;
|
|
||||||
lockRetryPending = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onLoginctlStateChanged() {
|
function onLoginctlStateChanged() {
|
||||||
@@ -346,6 +343,8 @@ Scope {
|
|||||||
function onLockedChanged() {
|
function onLockedChanged() {
|
||||||
if (sessionLock.locked)
|
if (sessionLock.locked)
|
||||||
return;
|
return;
|
||||||
|
if (shouldLock && (IdleService.monitorsOff || lockPowerOffArmed || IdleService.lockPowerOffRequested))
|
||||||
|
return;
|
||||||
lockWakeAllowed = false;
|
lockWakeAllowed = false;
|
||||||
resetPowerOffFade();
|
resetPowerOffFade();
|
||||||
if (IdleService.monitorsOff && powerOffOnLock) {
|
if (IdleService.monitorsOff && powerOffOnLock) {
|
||||||
@@ -430,6 +429,22 @@ Scope {
|
|||||||
onTriggered: root.lockRetryPending = false
|
onTriggered: root.lockRetryPending = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Timer {
|
||||||
|
id: resumeRelockTimer
|
||||||
|
interval: 1000
|
||||||
|
repeat: false
|
||||||
|
onTriggered: {
|
||||||
|
if (!root.shouldLock || sessionLock.locked)
|
||||||
|
return;
|
||||||
|
if (IdleService.monitorsOff || root.lockPowerOffArmed || IdleService.lockPowerOffRequested)
|
||||||
|
return;
|
||||||
|
root.log.warn("Session lock dead after resume - re-locking");
|
||||||
|
root.resetLockRetry();
|
||||||
|
root.lockRetryPending = true;
|
||||||
|
root.lockRetryPending = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: dpmsReapplyTimer
|
id: dpmsReapplyTimer
|
||||||
interval: 100
|
interval: 100
|
||||||
|
|||||||
Reference in New Issue
Block a user