mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Launcher: play close animation after launching app / running command
This commit is contained in:
@@ -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]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user