From 5fe6587cd33eefeb78047867aa6e40ce48269499 Mon Sep 17 00:00:00 2001 From: David Florness Date: Mon, 18 Jan 2021 20:54:03 -0500 Subject: [PATCH] TUI: don't update app's queue in input capture tview doesn't seem to like this --- ui/tui.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/tui.go b/ui/tui.go index 3b9a48b..4c8de01 100644 --- a/ui/tui.go +++ b/ui/tui.go @@ -228,10 +228,10 @@ func ElectionTUI(client *mautrix.Client, el *election.Election) { frame.AddText("Press enter to start the election", false, tview.AlignCenter, tcell.ColorWhite) app.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { if event.Key() == tcell.KeyEnter { - app.QueueUpdateDraw(func() { - frame.Clear() - frame.AddText("Starting election...", false, tview.AlignCenter, tcell.ColorWhite) - }) + // app.QueueUpdateDraw(func() { + // frame.Clear() + // frame.AddText("Starting election...", false, tview.AlignCenter, tcell.ColorWhite) + // }) err := el.StartElection(client) if err != nil { panic(err) -- 2.38.4