fix >/< keybinds
This commit is contained in:
parent
8b16d3ea50
commit
51fbf42653
|
|
@ -275,12 +275,16 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
|
||||||
|
|
||||||
// Play next song
|
// Play next song
|
||||||
KeyCode::Char('>') => {
|
KeyCode::Char('>') => {
|
||||||
app.conn.conn.next()?;
|
if !app.queue_list.list.is_empty() {
|
||||||
|
app.conn.conn.next()?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Play previous song
|
// Play previous song
|
||||||
KeyCode::Char('<') => {
|
KeyCode::Char('<') => {
|
||||||
app.conn.conn.prev()?;
|
if !app.queue_list.list.is_empty() {
|
||||||
|
app.conn.conn.prev()?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Volume controls
|
// Volume controls
|
||||||
|
|
|
||||||
Reference in New Issue