Skip to content

Commit

Permalink
Show search bar by default in AppChooserDialog (#12013)
Browse files Browse the repository at this point in the history
* By setting `self.search_bar.set_search_mode` to True, the search bar will be displayed when opening the dialog "Choose application" without having to type a key first
  • Loading branch information
iakmds committed Feb 12, 2024
1 parent 5d3a79b commit 2ad67fd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ def __init__(self):
self.search_bar = Gtk.SearchBar()
self.search_bar.add(self.entry)
self.search_bar.props.hexpand = True
self.search_bar.set_search_mode(True)

list_box = Gtk.ListBox()
list_box.set_sort_func(self.sort_apps, None)
Expand Down

0 comments on commit 2ad67fd

Please sign in to comment.