summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-05 14:50:14 -0600
committerJeff Carr <[email protected]>2024-01-05 14:50:14 -0600
commit198f7eac8894ffdc1ed725704fa9449dd55fc431 (patch)
tree3b46b019949b274c0477b2a3eac5e6175bddfa2a
parentff32316084e11911462be420dd8310473b3d26fd (diff)
work towards gui Draw() abstraction
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index bf18ed3..8ca1bd3 100644
--- a/main.go
+++ b/main.go
@@ -15,6 +15,8 @@ import (
func DebugWindow(p *gui.Node) {
if (me != nil) {
+ log.Warn("Draw then Toggle() debuging window here")
+ me.bugWin.Draw()
me.bugWin.Toggle()
return
}
@@ -22,11 +24,11 @@ func DebugWindow(p *gui.Node) {
me.myGui = p
me.bugWin = gadgets.NewBasicWindow(p,"go.wit.com/gui debug window")
-
DebugWindow2(me.bugWin.Box(), "Debug Tab")
- // initialize the log settings window (does not display it)
+ // initialize the log settings window (does not display it)
me.myLS = logsettings.New(me.myGui)
+
if ArgDebug() {
log.SetTmp()
}