Skip to content

Commit

Permalink
Start playing selected track on search entry activate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten committed Dec 14, 2023
1 parent 1419908 commit e195220
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,13 @@ public class Music.MainWindow : Gtk.ApplicationWindow {
adj.@value = adj.upper * ratio;
}
});

search_entry.activate.connect (() => {
var selected = queue_listbox.get_selected_row ();
if (selected != null) {
selected.activate ();
}
});
}

//Array concatenation not permitted for parameters so use a list instead
Expand Down

0 comments on commit e195220

Please sign in to comment.