Always send prev and next

This commit is contained in:
chmanie 2023-06-09 15:05:39 +02:00
parent ef6249d9d7
commit 191ed4eed2
1 changed files with 2 additions and 6 deletions

View File

@ -187,15 +187,11 @@ impl ListView for QueueView {
impl QueueView {
fn play_next(&self) {
if self.current_position < self.get_size() - 1 {
self.tx.send(MessageFromUi::NextTrack);
}
}
fn play_prev(&self) {
if self.current_position > 0 {
self.tx.send(MessageFromUi::PrevTrack);
}
}
fn play_selected(&self) {
if let Some(pos) = self.selected() {
self.tx.send(MessageFromUi::SetCurrentTrack(pos));