diff options
| author | krolxon <krolyxon@tutanota.com> | 2024-05-13 14:04:00 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2024-05-13 14:04:00 +0530 |
| commit | f2783c00d2d0cf2eddfcc8843f71581284cca1ae (patch) | |
| tree | e6107a0b0bca39457afcbaaf105943ffe12cde29 /src/event/handler.rs | |
| parent | bb5bcea3ff0f3205d087637ab485ef066309adeb (diff) | |
instantly update status on playback controls
Diffstat (limited to 'src/event/handler.rs')
| -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 d1f1146..1d0ceb7 100755 --- a/src/event/handler.rs +++ b/src/event/handler.rs @@ -64,6 +64,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { let (pos, _) = status.time.unwrap_or_default(); let pos = Duration::from_secs(pos.as_secs().wrapping_add(2)); app.conn.conn.seek(place, pos)?; + app.conn.update_status(); } } @@ -75,6 +76,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { let (pos, _) = status.time.unwrap_or_default(); let pos = Duration::from_secs(pos.as_secs().wrapping_sub(2)); app.conn.conn.seek(place, pos)?; + app.conn.update_status(); } } |
