diff options
| author | krolxon <krolyxon@tutanota.com> | 2024-05-12 17:19:55 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2024-05-12 17:19:55 +0530 |
| commit | 520dad7c9a50cbb5d28d047a33efdc1611e7fb18 (patch) | |
| tree | 5d5f97309ac9741bd9cc870137edc23ac3f799e2 | |
| parent | f3fb60a1a0fa5156bd0a4569a383224cdbabd961 (diff) | |
fix highlight delay when swapping songs
| -rwxr-xr-x | src/event/handler.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/handler.rs b/src/event/handler.rs index 7bf6448..8c6d111 100755 --- a/src/event/handler.rs +++ b/src/event/handler.rs @@ -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 |
