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,13 +275,17 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
// Play next song
KeyCode::Char('>') => {
if !app.queue_list.list.is_empty() {
app.conn.conn.next()?;
}
}
// Play previous song
KeyCode::Char('<') => {
if !app.queue_list.list.is_empty() {
app.conn.conn.prev()?;
}
}
// Volume controls
KeyCode::Char('=') => {