Always send prev and next
This commit is contained in:
parent
ef6249d9d7
commit
191ed4eed2
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue