From c5472a42a24ff2ec0dce44c6ea275cd2670f8524 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 13 Feb 2025 14:11:52 -0600 Subject: finally starting to clean up the init() process --- help.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'help.go') diff --git a/help.go b/help.go index f0cf48b..a0b638a 100644 --- a/help.go +++ b/help.go @@ -131,6 +131,15 @@ func setThingsOnTop() { me.baseGui.SetViewOnTop(me.clock.tk.v.Name()) } + if me.stdout.tk == nil { + makeOutputWidget(me.baseGui, "from setThingsOnTop()") + } + if me.stdout.tk == nil { + return + } + if me.stdout.tk.v == nil { + return + } if me.dark { me.stdout.tk.v.FgColor = gocui.ColorWhite me.stdout.tk.v.BgColor = gocui.ColorBlack -- cgit v1.2.3