From 074d815725dd80a5407cc5772a7a8c23699cf4b6 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 23 Aug 2026 12:19:59 +0800 Subject: cleanup: Launcher --- popups/launcher/Launcher.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'popups') diff --git a/popups/launcher/Launcher.qml b/popups/launcher/Launcher.qml index fdc14c6..5db25cc 100644 --- a/popups/launcher/Launcher.qml +++ b/popups/launcher/Launcher.qml @@ -22,18 +22,21 @@ ILauncher { IRect { id: container - property var selection: launcher.state?.selected || null + property var selection: launcher.state?.selected property var mappedSelection: selection?.mapToItem(null, 0, 0) + onMappedSelectionChanged: { // launcher.state?.selected may be slow.. smh qt // my guess is mapToItem is called when its not finished doing whatever it needs to do, // so it doesnt get the right vars, but it doesn't update after since it already triggered it selectionSync.running = true; } + // for some reason selection changing doesnt call onMappedSelectionChanged, so we manually trigger it onSelectionChanged: { selectionSync.running = true; } + Timer { id: selectionSync // TODO: evaluate weather i just leave it running repeat, might be costy though @@ -113,9 +116,6 @@ ILauncher { Behavior on topMargin { ISpringAnimation {} - // NumberAnimation { - // duration: General.animationDuration / 2 - // } } } -- cgit v1.2.3