Fix UI freeze when pressing Down in an empty table

tview's table navigation never terminates when no row is selectable. Turn
selection off while the Downloads panels and the release list are empty.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 19:18:24 +02:00
co-authored by Claude Sonnet 5.5
parent 3f6e595719
commit 0b4af81203
3 changed files with 44 additions and 0 deletions
+2
View File
@@ -166,6 +166,8 @@ func (v *releasesView) render() {
}
v.table.SetCell(1, 1, tview.NewTableCell("[gray]"+msg).SetSelectable(false))
}
// With no selectable row tview's Down/Up handling never terminates.
v.table.SetSelectable(len(v.shown) > 0, false)
if len(v.shown) > 0 {
v.table.Select(max(selRow, 1), 0)
} else {