diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-11 20:23:37 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-14 15:37:02 +0800 |
| commit | 495dfd94657c8adc28e0bb2d442fa9bf1f6a1f45 (patch) | |
| tree | 7bc669c50048aa973089c0e3f5e6cd3c0d94ba61 /launcher | |
| parent | b17ae550381232fd8c0cce5024e8ec0852918a33 (diff) | |
fix(Standalone): state.priorities not existing
Diffstat (limited to 'launcher')
| -rw-r--r-- | launcher/components/IComponent.qml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/launcher/components/IComponent.qml b/launcher/components/IComponent.qml index fdeb5b6..d115d0f 100644 --- a/launcher/components/IComponent.qml +++ b/launcher/components/IComponent.qml @@ -69,10 +69,12 @@ IRect { onPriorityChanged: { // sync with state.priorities - if (!standalone) - state.priorities = [...[...state.priorities, root].reduce((s, x) => (s[(s.has(x) && 'delete') || 'add'](x), s), new Set())]; - else - state.priorities = [this]; + Qt.callLater(() => { + if (!standalone) + state.priorities = [...[...state.priorities, root].reduce((s, x) => (s[(s.has(x) && 'delete') || 'add'](x), s), new Set())]; + else + state.priorities = [root]; + }); } Behavior on y { |
