diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-17 13:50:42 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-18 00:44:23 +0800 |
| commit | dcb0ca1b266f64cc2efad6e367e01348dd9a60eb (patch) | |
| tree | af90a8401bfa2c210a832eea46ab7d6787d93be9 /shell.qml | |
| parent | 4fdcac3dd0b5748f1b45769f9429062c63aaf7c4 (diff) | |
shell(standaloneObj): make linter happy
it'd spam WARN scene: QML IpcHandler at @shell.qml[25:5]: Error parsing
property "standaloneObj": Type QVariant cannot be used across IPC.
Diffstat (limited to 'shell.qml')
| -rw-r--r-- | shell.qml | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -7,6 +7,7 @@ import QtQuick Scope { id: root + property var standaloneObj: null Bar {} LazyLoader { id: launcherLoader @@ -24,18 +25,17 @@ Scope { } IpcHandler { target: "launcher" - property var standaloneObj: null function toggle() { launcherLoader.active = !launcherLoader.active; } function standalone(component: string): void { - if (standaloneObj) { - standaloneObj.active = !standaloneObj.active; + if (root.standaloneObj) { + root.standaloneObj.active = !root.standaloneObj.active; return; } - standaloneObj = Qt.createQmlObject(` + root.standaloneObj = Qt.createQmlObject(` import Quickshell import QtQuick import "launcher" |
