Krolyxon
Commit f2783c0

rmptuif2783c0

instantly update status on playback controls

Author
krolxon
Date
2024-05-13 14:04 +0530
Parent
bb5bcea
Commit
f2783c00d2d0cf2eddfcc8843f71581284cca1ae

+2 −0

1 file changed

  1. M src/event/handler.rs +2 −0
M src/event/handler.rs View
@@ -64,6 +64,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
6464 let (pos, _) = status.time.unwrap_or_default();
6565 let pos = Duration::from_secs(pos.as_secs().wrapping_add(2));
6666 app.conn.conn.seek(place, pos)?;
67+ app.conn.update_status();
6768 }
6869 }
6970
@@ -75,6 +76,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> {
7576 let (pos, _) = status.time.unwrap_or_default();
7677 let pos = Duration::from_secs(pos.as_secs().wrapping_sub(2));
7778 app.conn.conn.seek(place, pos)?;
79+ app.conn.update_status();
7880 }
7981 }
8082