fix >/< keybinds

This commit is contained in:
krolxon 2024-04-29 11:55:07 +05:30
parent 8b16d3ea50
commit 51fbf42653
1 changed files with 6 additions and 2 deletions

View File

@ -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