1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-04 04:28:30 -04:00

lock: set LockedHint when locking with loginctl lock integration

- was previously read-only
fixes #2732
This commit is contained in:
bbedward
2026-07-02 22:57:09 -04:00
parent 31efe9b385
commit 186621ab81
4 changed files with 42 additions and 0 deletions
+7
View File
@@ -49,6 +49,12 @@ Scope {
lock();
}
function notifyLockedHint(locked: bool) {
if (!SettingsData.loginctlLockIntegration || !DMSService.isConnected)
return;
DMSService.setLockedHint(locked, () => {});
}
function notifyLoginctl(lockAction: bool) {
if (!SettingsData.loginctlLockIntegration || !DMSService.isConnected)
return;
@@ -217,6 +223,7 @@ Scope {
target: sessionLock
function onLockedChanged() {
notifyLockedHint(sessionLock.locked);
if (sessionLock.locked) {
pendingLock = false;
if (lockPowerOffArmed && SettingsData.lockScreenPowerOffMonitorsOnLock) {