move lid watch toggle into lock settings

This commit is contained in:
2026-06-01 20:45:04 +02:00
parent 83cf008a19
commit 1c1c6275df
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -196,7 +196,6 @@ Singleton {
wallpaperPath: general.wallpaperPath, wallpaperPath: general.wallpaperPath,
desktopIcons: general.desktopIcons, desktopIcons: general.desktopIcons,
dateFormat: general.dateFormat, dateFormat: general.dateFormat,
lidWatch: general.lidWatch,
color: { color: {
mode: general.color.mode, mode: general.color.mode,
smart: general.color.smart, smart: general.color.smart,
@@ -254,6 +253,7 @@ Singleton {
return { return {
recolorLogo: lock.recolorLogo, recolorLogo: lock.recolorLogo,
enableFprint: lock.enableFprint, enableFprint: lock.enableFprint,
lidWatch: lock.lidWatch,
showNotifContent: lock.showNotifContent, showNotifContent: lock.showNotifContent,
showNotifIcon: lock.showNotifIcon, showNotifIcon: lock.showNotifIcon,
maxFprintTries: lock.maxFprintTries, maxFprintTries: lock.maxFprintTries,
-1
View File
@@ -10,7 +10,6 @@ JsonObject {
} }
property string dateFormat: "ddd d MMM - hh:mm:ss" property string dateFormat: "ddd d MMM - hh:mm:ss"
property bool desktopIcons: false property bool desktopIcons: false
property bool lidWatch: true
property Idle idle: Idle { property Idle idle: Idle {
} }
property string logo: "" property string logo: ""
+1
View File
@@ -4,6 +4,7 @@ JsonObject {
property int blurAmount: 40 property int blurAmount: 40
property bool enableFprint: true property bool enableFprint: true
property int maxFprintTries: 3 property int maxFprintTries: 3
property bool lidWatch: true
property bool recolorLogo: false property bool recolorLogo: false
property bool showNotifContent: false property bool showNotifContent: false
property bool showNotifIcon: true property bool showNotifIcon: true
+2 -2
View File
@@ -60,8 +60,8 @@ SettingsPage {
} }
SettingSwitch { SettingSwitch {
name: "Lid watch" name: "Laptop lid watch to lock session"
object: Config.general object: Config.lock
setting: "lidWatch" setting: "lidWatch"
} }
+1 -1
View File
@@ -39,7 +39,7 @@ ShellRoot {
} }
Connections { Connections {
enabled: Config.general.lidWatch enabled: Config.lock.lidWatch
function onLidClosing(): void { function onLidClosing(): void {
lock.lock.locked = true; lock.lock.locked = true;
} }