From 1c1c6275df06472ef739e044932e58ea89a82c6d Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 1 Jun 2026 20:45:04 +0200 Subject: [PATCH] move lid watch toggle into lock settings --- Config/Config.qml | 2 +- Config/General.qml | 1 - Config/LockConf.qml | 1 + Modules/Settings/Categories/Lockscreen.qml | 4 ++-- shell.qml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Config/Config.qml b/Config/Config.qml index 4f4dca0..b2a541e 100644 --- a/Config/Config.qml +++ b/Config/Config.qml @@ -196,7 +196,6 @@ Singleton { wallpaperPath: general.wallpaperPath, desktopIcons: general.desktopIcons, dateFormat: general.dateFormat, - lidWatch: general.lidWatch, color: { mode: general.color.mode, smart: general.color.smart, @@ -254,6 +253,7 @@ Singleton { return { recolorLogo: lock.recolorLogo, enableFprint: lock.enableFprint, + lidWatch: lock.lidWatch, showNotifContent: lock.showNotifContent, showNotifIcon: lock.showNotifIcon, maxFprintTries: lock.maxFprintTries, diff --git a/Config/General.qml b/Config/General.qml index 1ab28c1..45d3513 100644 --- a/Config/General.qml +++ b/Config/General.qml @@ -10,7 +10,6 @@ JsonObject { } property string dateFormat: "ddd d MMM - hh:mm:ss" property bool desktopIcons: false - property bool lidWatch: true property Idle idle: Idle { } property string logo: "" diff --git a/Config/LockConf.qml b/Config/LockConf.qml index 87a4f4e..874131b 100644 --- a/Config/LockConf.qml +++ b/Config/LockConf.qml @@ -4,6 +4,7 @@ JsonObject { property int blurAmount: 40 property bool enableFprint: true property int maxFprintTries: 3 + property bool lidWatch: true property bool recolorLogo: false property bool showNotifContent: false property bool showNotifIcon: true diff --git a/Modules/Settings/Categories/Lockscreen.qml b/Modules/Settings/Categories/Lockscreen.qml index 47f0f4d..3230086 100644 --- a/Modules/Settings/Categories/Lockscreen.qml +++ b/Modules/Settings/Categories/Lockscreen.qml @@ -60,8 +60,8 @@ SettingsPage { } SettingSwitch { - name: "Lid watch" - object: Config.general + name: "Laptop lid watch to lock session" + object: Config.lock setting: "lidWatch" } diff --git a/shell.qml b/shell.qml index 3720216..2a24bbc 100644 --- a/shell.qml +++ b/shell.qml @@ -39,7 +39,7 @@ ShellRoot { } Connections { - enabled: Config.general.lidWatch + enabled: Config.lock.lidWatch function onLidClosing(): void { lock.lock.locked = true; }