From dcb0ca1b266f64cc2efad6e367e01348dd9a60eb Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 17 Aug 2025 13:50:42 +0800 Subject: 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. --- shell.qml | 8 ++++---- 1 file 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" -- cgit v1.2.3