@@ -6,7 +6,7 @@ use cursive::Cursive;
|
||||
use std::cmp::min;
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::command::{Command, ShiftMode};
|
||||
use crate::command::{Command, MoveMode, ShiftMode};
|
||||
use crate::commands::CommandResult;
|
||||
use crate::library::Library;
|
||||
use crate::queue::Queue;
|
||||
@@ -132,6 +132,11 @@ impl ViewExt for QueueView {
|
||||
s.add_layer(dialog);
|
||||
return Ok(CommandResult::Consumed(None));
|
||||
}
|
||||
Command::Move(MoveMode::Playing, _) => {
|
||||
if let Some(playing) = self.queue.get_current_index() {
|
||||
self.list.move_focus_to(playing);
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user