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
This commit is contained in:
sankalp committed 2026-04-25 08:48:01 +05:45
1 parent f92c42d224
commit d51f30f058
1 file changed
+5 -2
+5 -2
View File
@@ -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: