adding the options form for the stream view

This commit is contained in:
2026-06-18 17:05:27 +01:00
parent 74d57a6ece
commit 3e92467beb
6 changed files with 100 additions and 40 deletions
+3
View File
@@ -24,6 +24,9 @@ func ListFormButtonLabels(form *tview.Form) []string {
}
func SetFormButtonCallback(form *tview.Form, btnLabel string, fn func()) error {
// NOTE: is there a better way to do this ???
// Find out
btnIndex := form.GetButtonIndex(btnLabel)
if btnIndex == -1 {
availableButtons := ListFormButtonLabels(form)