diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-17 16:08:27 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-19 20:15:21 +0800 |
| commit | ae750dbadf9139add77a172f4595077e8826e755 (patch) | |
| tree | ddab20fd312ecf2492de7a8aecd919009571c59a | |
| parent | 357777849371e7d4d14809e7b51fe120a16f129f (diff) | |
fix(qs:launcher:standalone): allow different standaloneObj
regression introduced in b66eeccf0a0248c36fb5026ee7ac806591387463
| -rw-r--r-- | shell.qml | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -7,7 +7,7 @@ import QtQuick Scope { id: root - property var standaloneObj: null + property var standaloneObj: ({}) Bar {} LazyLoader { id: launcherLoader @@ -31,11 +31,11 @@ Scope { } function standalone(component: string): void { - if (root.standaloneObj) { - root.standaloneObj.active = !root.standaloneObj.active; + if (root.standaloneObj.name === component) { + root.standaloneObj.obj.active = !root.standaloneObj.obj.active; return; } - root.standaloneObj = Qt.createQmlObject(` + root.standaloneObj.obj = Qt.createQmlObject(` import Quickshell import QtQuick import "launcher" @@ -71,6 +71,7 @@ Scope { } } `, root); + root.standaloneObj.name = component; } } |
