summaryrefslogtreecommitdiff
path: root/logsettings/settings.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-04 22:02:12 -0600
committerJeff Carr <[email protected]>2024-01-04 22:02:12 -0600
commitd69a41a295aca9cd40449d4d4840265defb4e3de (patch)
tree2d271f659e94a6bbbd20db93943d0cf292fdfe52 /logsettings/settings.go
parent54b576b69d9ff0afcb50124fe72bcee8f6e6a2f8 (diff)
switch log to BasicWindow()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'logsettings/settings.go')
-rw-r--r--logsettings/settings.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/logsettings/settings.go b/logsettings/settings.go
index 4e95b7a..2bc252a 100644
--- a/logsettings/settings.go
+++ b/logsettings/settings.go
@@ -11,21 +11,19 @@ func New(p *gui.Node) *LogSettings {
if myLogGui != nil {return myLogGui}
myLogGui = new(LogSettings)
myLogGui.parent = p
+ myLogGui.groups = make(map[string]*flagGroup)
myLogGui.ready = true
myLogGui.hidden = true
- myLogGui.groups = make(map[string]*flagGroup)
return myLogGui
}
-func (ls *LogSettings) Set(b bool) {
- // log.Set(ls.name, b)
- log.Warn("log.Set() FIXME: not working here anymore")
-}
-
// Returns true if the status is valid
func (d *LogSettings) Ready() bool {
if d == nil {return false}
if ! d.parent.Ready() {return false}
+ if (d.win == nil) {
+ d.draw()
+ }
return d.ready
}