We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6cf62 commit f9eaf23Copy full SHA for f9eaf23
src/SearchWindow.vala
@@ -110,12 +110,12 @@ public class Detective.SearchWindow : Gtk.ApplicationWindow {
110
111
entry.stop_search.connect (destroy);
112
113
- selection_model.items_changed.connect (update_vadjustment);
+ selection_model.items_changed.connect (() => Idle.add (update_vadjustment));
114
115
weak_ref (engine.clear_search);
116
}
117
118
- private void update_vadjustment () {
+ private bool update_vadjustment () {
119
scrolled_window.vadjustment.value = 0;
120
selection_model.selected = 0;
121
@@ -124,5 +124,7 @@ public class Detective.SearchWindow : Gtk.ApplicationWindow {
124
} else {
125
stack.visible_child_name = "placeholder";
126
127
+
128
+ return Source.REMOVE;
129
130
0 commit comments