diff options
| author | Jeff Carr <[email protected]> | 2024-01-20 20:04:05 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-20 20:04:05 -0600 |
| commit | c00143ec9d932ac74dff2e9ae4d6d07928e4a857 (patch) | |
| tree | 20323a8a6f6e7f78cad282934a54248b6acdf507 /settings.go | |
| parent | 8a655d64a3cfcefa9ed01bb276b06f40ddfd18d1 (diff) | |
general improvmentsv0.10.2
better window open
debugger works again
new go mod
Signed-off-by: Jeff Carr <[email protected]>
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'settings.go')
| -rw-r--r-- | settings.go | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/settings.go b/settings.go index f7af7df..f3ab8ac 100644 --- a/settings.go +++ b/settings.go @@ -5,14 +5,26 @@ import ( "go.wit.com/log" ) +func LogWindow() *LogSettings { + if myLogGui != nil { + myLogGui.Toggle() + return myLogGui + } + myLogGui = NewWindow() + myLogGui.draw() + myLogGui.win.Toggle() + myLogGui.win.Toggle() + return myLogGui +} + // This initializes the main object // You can only have one of these -func New(p *gui.Node) *LogSettings { +func NewWindow() *LogSettings { if myLogGui != nil { return myLogGui } myLogGui = new(LogSettings) - myLogGui.parent = p + myLogGui.parent = gui.TreeRoot() myLogGui.groups = make(map[string]*flagGroup) myLogGui.ready = true myLogGui.hidden = true |
