From 25bd01da85b6888c52154c112343577744977141 Mon Sep 17 00:00:00 2001 From: Jeremy Wootten Date: Mon, 5 Aug 2024 18:40:43 +0100 Subject: [PATCH] Allow select first row --- src/MainWindow.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 3892f967b..4fcac567e 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -187,7 +187,7 @@ public class Music.MainWindow : Gtk.ApplicationWindow { search_entry.search_changed.connect (() => { int pos = playback_manager.find_title (search_entry.text); - if (pos > 0) { + if (pos >= 0) { queue_listbox.select_row (queue_listbox.get_row_at_index (pos)); var adj = scrolled.vadjustment; // Search entry is hidden if n_items is zero so no need to check