diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-14 18:37:23 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-14 21:42:44 +0800 |
| commit | a417c8539961858e99da9623007feba14ed61170 (patch) | |
| tree | 05d6576ff2901c348ea0f7dff27a95dd7622f3a0 /launcher/components/IComponent.qml | |
| parent | 560e8fb7d7c1c3e8a613138bb9944468069cbc0d (diff) | |
fix(IComponent): activeRect not being at selected item at launch
Diffstat (limited to 'launcher/components/IComponent.qml')
| -rw-r--r-- | launcher/components/IComponent.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/launcher/components/IComponent.qml b/launcher/components/IComponent.qml index d115d0f..4ff3f2f 100644 --- a/launcher/components/IComponent.qml +++ b/launcher/components/IComponent.qml @@ -33,6 +33,7 @@ IRect { preview: preview, predictiveCompletion: predictiveCompletion })// use the current IRect if valid is set + property var syncSelectionState: () => {} // actions property var up: () => ({ top: false @@ -83,4 +84,10 @@ IRect { easing.type: Easing.InOutQuad } } + + Component.onCompleted: { + Qt.callLater(() => { + syncSelectionState(); + }); + } } |
