fix highlight delay when swapping songs

This commit is contained in:
krolxon 2024-05-12 17:19:55 +05:30
parent f3fb60a1a0
commit 520dad7c9a
1 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
};
app.conn.conn.swap(current, next)?;
app.update_queue();
app.conn.update_status();
}
// Swap highlighted song with previous one
@ -201,6 +202,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
};
app.conn.conn.swap(current, prev)?;
app.update_queue();
app.conn.update_status();
}
// go to top of list