diff options
| author | Jeff Carr <[email protected]> | 2025-03-02 18:16:56 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-02 18:16:56 -0600 |
| commit | 4b79e862a7832aa23b0a97ef16d6d9b9559016b7 (patch) | |
| tree | d7813064aa2601eb05f1399987b269c8d6b3d889 /init.go | |
| parent | dc329ed18c27c3b7d0467b5fc131438f41ece678 (diff) | |
some crippled dumb refresh code kinda makes init() work for now
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -243,6 +243,13 @@ func refreshGocui() { // redraw the windows if something has changed if time.Since(lastRefresh) > 1000*time.Millisecond { if me.refresh { + if me.stdout.outputOnTop { + me.stdout.outputOnTop = false + setThingsOnTop() + } else { + me.stdout.outputOnTop = true + setThingsOnTop() + } log.Info("refresh triggered") me.newWindowTrigger <- me.treeRoot.TK.(*guiWidget) me.refresh = false |
