Skip to content

Commit

Permalink
Allow select first row
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypw committed Aug 5, 2024
1 parent 23541b8 commit 25bd01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25bd01d

Please sign in to comment.