diff options
| author | Jeff Carr <[email protected]> | 2025-03-03 01:00:11 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-03 01:00:11 -0600 |
| commit | 660d9e7e3a9f35dca8e6a7dd69d477bb0c433ca7 (patch) | |
| tree | 4fa697ce9f46ccfbd6041ef9e31e5b57b0a50d66 /init.go | |
| parent | 0124d25c341f3c1cfb389a177e2d62135d811d17 (diff) | |
init is more correct now
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -30,8 +30,16 @@ func toolkitInit() { log.Info("gocui toolkitInit() me.ok =", me.ok) if me.baseGui == nil { log.Info("gocui baseGui is still nil") - os.Exit(-1) + standardExit() } + if me.treeRoot == nil { + log.Info("gocui treeRoot is still nil") + standardExit() + } + w := me.treeRoot.TK.(*guiWidget) + w.dumpTree("MM") + w.dumpWindows("WW") + me.baseGui.Update(testRefresh) log.Info("gocui toolkitInit() trying showHelp() me.ok =", me.ok) showHelp() @@ -62,6 +70,20 @@ func toolkitInit() { var toggle bool for i := 0; i < 6; i++ { + w := me.treeRoot.TK.(*guiWidget) + w.dumpTree("MM") + w.dumpWindows("WW") + + if me.notify.clock.tk != nil { + // also double check the gocui view exists + if me.notify.clock.tk.v != nil { + me.notify.clock.tk.v.Clear() + me.notify.clock.tk.labelN = time.Now().Format("15:04:05") + me.notify.clock.tk.v.WriteString(me.notify.clock.tk.labelN) + } + } else { + log.Info("gocui toolkitInit() clock.tv.v == nil me.ok =", me.ok) + } if toggle { toggle = false time.Sleep(1 * time.Second) |
