Launcher: play close animation after launching app / running command

This commit is contained in:
Lysec
2026-01-28 19:09:47 +01:00
parent bdfb09a564
commit 379c2a6803
2 changed files with 3 additions and 4 deletions
@@ -547,9 +547,8 @@ Item {
"_score": (score !== undefined ? score : 0),
"provider": root,
"onActivate": function () {
// Close the launcher/SmartPanel immediately without any animations.
// Ensures we are not preventing the future focusing of the app
launcher.closeImmediately();
// Close the launcher/SmartPanel with animation.
launcher.close();
// Defer execution to next event loop iteration to ensure panel is fully closed
Qt.callLater(() => {
@@ -39,7 +39,7 @@ Item {
"isTablerIcon": true,
"isImage": false,
"onActivate": function () {
launcher.closeImmediately();
launcher.close();
Qt.callLater(() => {
Quickshell.execDetached(["sh", "-lc", expression]);
});