Skip to content

Commit

Permalink
refactor: remove now useless window.is_visible check
Browse files Browse the repository at this point in the history
  • Loading branch information
friday committed May 12, 2024
1 parent ba75a92 commit b61c6f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ulauncher/ui/windows/ulauncher_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ def on_input_changed(self) -> None:
Triggered by user input
"""
events.emit("app:set_query", self.input.get_text(), update_input=False)
if self.is_visible():
# input_changed can trigger when hiding window
mode_handler.on_query_change(self.query)
mode_handler.on_query_change(self.query)

def on_input_key_press(self, entry_widget: Gtk.Entry, event: Gdk.EventKey) -> bool: # noqa: PLR0911
"""
Expand Down

0 comments on commit b61c6f5

Please sign in to comment.