mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-04 21:02:06 -04:00
lock: add lock at startup action, not sure how to handle it in crash
scenarios launcher v2: fix state reset in section changes fixes #1648
This commit is contained in:
@@ -43,6 +43,8 @@ Scope {
|
||||
|
||||
Component.onCompleted: {
|
||||
IdleService.lockComponent = this;
|
||||
if (SettingsData.lockAtStartup)
|
||||
lock();
|
||||
}
|
||||
|
||||
function notifyLoginctl(lockAction: bool) {
|
||||
@@ -204,7 +206,6 @@ Scope {
|
||||
}
|
||||
|
||||
LockScreenDemo {
|
||||
|
||||
id: demoWindow
|
||||
}
|
||||
|
||||
|
||||
@@ -148,6 +148,15 @@ Item {
|
||||
onToggled: checked => SettingsData.set("lockScreenPowerOffMonitorsOnLock", checked)
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
settingKey: "lockAtStartup"
|
||||
tags: ["lock", "screen", "startup", "start", "boot", "login", "automatic"]
|
||||
text: I18n.tr("Lock at startup")
|
||||
description: I18n.tr("Automatically lock the screen when DMS starts")
|
||||
checked: SettingsData.lockAtStartup
|
||||
onToggled: checked => SettingsData.set("lockAtStartup", checked)
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
settingKey: "enableFprint"
|
||||
tags: ["lock", "screen", "fingerprint", "authentication", "biometric", "fprint"]
|
||||
|
||||
Reference in New Issue
Block a user