rmptuif2783c0
instantly update status on playback controls
+2 −0
1 file changed
- M src/event/handler.rs +2 −0
| @@ -64,6 +64,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { | |||
| 64 | 64 | let (pos, _) = status.time.unwrap_or_default(); | |
| 65 | 65 | let pos = Duration::from_secs(pos.as_secs().wrapping_add(2)); | |
| 66 | 66 | app.conn.conn.seek(place, pos)?; | |
| 67 | + | app.conn.update_status(); | |
| 67 | 68 | } | |
| 68 | 69 | } | |
| 69 | 70 | ||
| @@ -75,6 +76,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { | |||
| 75 | 76 | let (pos, _) = status.time.unwrap_or_default(); | |
| 76 | 77 | let pos = Duration::from_secs(pos.as_secs().wrapping_sub(2)); | |
| 77 | 78 | app.conn.conn.seek(place, pos)?; | |
| 79 | + | app.conn.update_status(); | |
| 78 | 80 | } | |
| 79 | 81 | } | |
| 80 | 82 | ||