diff options
| author | Jeff Carr <[email protected]> | 2024-01-15 16:59:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-15 16:59:13 -0600 |
| commit | 01b512ddb32486af82894e98b3733cb00c59b3f2 (patch) | |
| tree | b33ae6584ad7d35bb940392da57d6e349da8df2b /logsettings/settings.go | |
| parent | b9e6545c002f8a6825395ebd79cb9ba744335c27 (diff) | |
move to separate repov0.12.5
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'logsettings/settings.go')
| -rw-r--r-- | logsettings/settings.go | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/logsettings/settings.go b/logsettings/settings.go deleted file mode 100644 index 2bc252a..0000000 --- a/logsettings/settings.go +++ /dev/null @@ -1,43 +0,0 @@ -package logsettings - -import ( - "go.wit.com/log" - "go.wit.com/gui/gui" -) - -// This initializes the main object -// You can only have one of these -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 - return myLogGui -} - -// 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 -} - -func (d *LogSettings) Update() bool { - if ! d.Ready() {return false} - return true -} - -func (d *LogSettings) ShowFlags() { - log.ShowFlags() - return -} - -func (d *LogSettings) SetAll(b bool) { - log.SetAll(b) - return -} |
