Skip to content

Commit 73a4a91

Browse files
authored
Fix TUI redraw after event-driven updates (#196)
## Summary - flush the live view when the UI refresh loop wakes up from an event-driven refresh request ## Testing - ./scripts/run-in-env.sh pytest tests/tui/test_volume_state.py - ./scripts/run-in-env.sh ruff check sendspin/tui/ui.py
1 parent 7c23650 commit 73a4a91

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sendspin/tui/ui.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ async def _refresh_loop(self) -> None:
203203
break
204204
else:
205205
event.clear()
206+
self._flush_refresh()
206207

207208
def _shortcut_style(self, shortcut: str) -> str:
208209
"""Get the style for a shortcut key."""

0 commit comments

Comments
 (0)