diff options
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 { |
