From a417c8539961858e99da9623007feba14ed61170 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 14 Aug 2025 18:37:23 +0800 Subject: fix(IComponent): activeRect not being at selected item at launch --- launcher/components/IComponent.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'launcher/components/IComponent.qml') 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(); + }); + } } -- cgit v1.2.3