fingerprint-preview: root in Singleton, not QtObject
The reload killer: FileView under a QtObject root — QtObject has no default property, so the whole service tree failed to compile. Every working service singleton roots in Quickshell's Singleton type.
This commit is contained in:
parent
cb7dd73d2b
commit
29ec9fe223
1 changed files with 8 additions and 4 deletions
|
|
@ -7,19 +7,23 @@
|
|||
pragma Singleton
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import qs.modules.common
|
||||
|
||||
QtObject {
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
readonly property bool previewEnabled:
|
||||
Config.options?.lock?.fingerprintPreview?.enabled ?? false
|
||||
(Config.options && Config.options.lock && Config.options.lock.fingerprintPreview
|
||||
&& Config.options.lock.fingerprintPreview.enabled) ?? false
|
||||
readonly property bool polkitEnabled:
|
||||
Config.options?.lock?.fingerprintPolkit?.enabled ?? true
|
||||
(Config.options && Config.options.lock && Config.options.lock.fingerprintPolkit
|
||||
&& Config.options.lock.fingerprintPolkit.enabled) ?? true
|
||||
readonly property bool enabled: previewEnabled || polkitEnabled
|
||||
readonly property int holdMs:
|
||||
Config.options?.lock?.fingerprintPreview?.holdMs ?? 3000
|
||||
(Config.options && Config.options.lock && Config.options.lock.fingerprintPreview
|
||||
&& Config.options.lock.fingerprintPreview.holdMs) ?? 3000
|
||||
property bool holding: false
|
||||
property bool confirmed: false
|
||||
property bool pulseSeen: false
|
||||
|
|
|
|||
Loading…
Reference in a new issue