From 61a0ddfdfd266fa533abf6d3bb8f000f1214a2cd Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 20 Feb 2026 20:11:52 +0300 Subject: Fix: stop making http request per each keypress --- tui.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tui.go') diff --git a/tui.go b/tui.go index 2c4fe67..b45f3e8 100644 --- a/tui.go +++ b/tui.go @@ -177,6 +177,9 @@ Press or 'x' to return ) func init() { + // Start background goroutine to update model color cache + startModelColorUpdater() + tview.Styles = colorschemes["default"] app = tview.NewApplication() pages = tview.NewPages() @@ -749,6 +752,8 @@ func init() { } if event.Key() == tcell.KeyF12 { // help window cheatsheet + // Update help text with current status before showing + helpView.SetText(fmt.Sprintf(helpText, makeStatusLine())) pages.AddPage(helpPage, helpView, true, true) return nil } -- cgit v1.2.3