summaryrefslogtreecommitdiff
path: root/shell.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-08-17 13:50:42 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-08-18 00:44:23 +0800
commitdcb0ca1b266f64cc2efad6e367e01348dd9a60eb (patch)
treeaf90a8401bfa2c210a832eea46ab7d6787d93be9 /shell.qml
parent4fdcac3dd0b5748f1b45769f9429062c63aaf7c4 (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.qml8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell.qml b/shell.qml
index 7e17826..6b8a394 100644
--- a/shell.qml
+++ b/shell.qml
@@ -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"