From d51f30f058a21ffd368da97880d65fcd45a11890 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sat, 25 Apr 2026 08:48:01 +0545 Subject: [PATCH] feat(src/window/launcher): trigger search on new text instead of clearing results - Show applications when query is empty - Schedule search via GLib timeout - Improves UI responsiveness and correctness --- src/window/launcher/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/window/launcher/main.py b/src/window/launcher/main.py index 9187f7c..df6cdc2 100644 --- a/src/window/launcher/main.py +++ b/src/window/launcher/main.py @@ -853,8 +853,11 @@ class Launcher(Window): if should_exit_trigger: self.triggered_plugin = None self.active_trigger = "" - self._clear_results() - # Don't clear the text - let the user's edit stand + + # Trigger a search with the new text instead of just clearing results + # This ensures we show applications if empty, or normal search results if not + self.query = new_text + GLib.timeout_add(50, self._perform_search, new_text) # If we're still in trigger mode but the text changed, update the search elif self.triggered_plugin and new_text != current_text: