SessionMenu: remove lock & suspend option, add toggle in general tab to

decide if lockscreen is used or not
This commit is contained in:
lysec
2025-10-18 14:08:51 +02:00
parent 5fa1481780
commit 6ba3b465de
5 changed files with 44 additions and 10 deletions
+24
View File
@@ -189,4 +189,28 @@ ColumnLayout {
Layout.topMargin: Style.marginXL
Layout.bottomMargin: Style.marginXL
}
// Lock Screen
ColumnLayout {
spacing: Style.marginL
Layout.fillWidth: true
NHeader {
label: I18n.tr("settings.general.lockscreen.section.label")
description: I18n.tr("settings.general.lockscreen.section.description")
}
NToggle {
label: I18n.tr("settings.general.lockscreen.lock-on-suspend.label")
description: I18n.tr("settings.general.lockscreen.lock-on-suspend.description")
checked: Settings.data.general.lockOnSuspend
onToggled: Settings.data.general.lockOnSuspend = checked
}
}
NDivider {
Layout.fillWidth: true
Layout.topMargin: Style.marginXL
Layout.bottomMargin: Style.marginXL
}
}