Skip to content

Commit

Permalink
Disable auto-selection of saved searches in the sidebar
Browse files Browse the repository at this point in the history
This change makes it possible to return to a state where none of
the saved searches are selected in the sidebar.
  • Loading branch information
gycsaba96 authored and diegogangl committed Jan 13, 2025
1 parent 6ac3c7e commit 4567c4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GTG/gtk/browser/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def __init__(self, app, ds: Datastore, browser):
searches_button.connect('clicked', self.on_search_reveal)

self.searches_selection = Gtk.SingleSelection.new(ds.saved_searches.model)
self.searches_selection.set_autoselect(False)
self.searches_selection.set_can_unselect(True)
self.searches_selection.unselect_item(0)
self.search_handle = self.searches_selection.connect('selection-changed', self.on_search_selected)
Expand Down

0 comments on commit 4567c4e

Please sign in to comment.