mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 13:32:50 -05:00
@@ -65,7 +65,7 @@ Scope {
|
|||||||
lockInitiatedLocally = true;
|
lockInitiatedLocally = true;
|
||||||
lockPowerOffArmed = SettingsData.lockScreenPowerOffMonitorsOnLock;
|
lockPowerOffArmed = SettingsData.lockScreenPowerOffMonitorsOnLock;
|
||||||
|
|
||||||
if (!SessionService.active && SessionService.loginctlAvailable) {
|
if (!SessionService.active && SessionService.loginctlAvailable && SettingsData.loginctlLockIntegration) {
|
||||||
pendingLock = true;
|
pendingLock = true;
|
||||||
notifyLoginctl(true);
|
notifyLoginctl(true);
|
||||||
return;
|
return;
|
||||||
@@ -99,7 +99,7 @@ Scope {
|
|||||||
function onSessionLocked() {
|
function onSessionLocked() {
|
||||||
if (shouldLock || pendingLock)
|
if (shouldLock || pendingLock)
|
||||||
return;
|
return;
|
||||||
if (!SessionService.active && SessionService.loginctlAvailable) {
|
if (!SessionService.active && SessionService.loginctlAvailable && SettingsData.loginctlLockIntegration) {
|
||||||
pendingLock = true;
|
pendingLock = true;
|
||||||
lockInitiatedLocally = false;
|
lockInitiatedLocally = false;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user