From 4567c4ec4e016c0b3c34e5a8917c0cb99f57ba8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Csaba=20Gy=C3=B6rgyi?= Date: Fri, 3 Jan 2025 13:54:57 +0100 Subject: [PATCH] Disable auto-selection of saved searches in the sidebar This change makes it possible to return to a state where none of the saved searches are selected in the sidebar. --- GTG/gtk/browser/sidebar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/GTG/gtk/browser/sidebar.py b/GTG/gtk/browser/sidebar.py index 579084f8c..d727aa841 100644 --- a/GTG/gtk/browser/sidebar.py +++ b/GTG/gtk/browser/sidebar.py @@ -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)