From f3da30a919832f071a120927ceb431d8fd5a6147 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 18 Jan 2024 01:34:00 -0600 Subject: fix paths Signed-off-by: Jeff Carr --- settings.go | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'settings.go') diff --git a/settings.go b/settings.go index 2bc252a..776bd28 100644 --- a/settings.go +++ b/settings.go @@ -1,14 +1,16 @@ package logsettings -import ( - "go.wit.com/log" +import ( "go.wit.com/gui/gui" + "go.wit.com/log" ) // This initializes the main object // You can only have one of these func New(p *gui.Node) *LogSettings { - if myLogGui != nil {return myLogGui} + if myLogGui != nil { + return myLogGui + } myLogGui = new(LogSettings) myLogGui.parent = p myLogGui.groups = make(map[string]*flagGroup) @@ -19,16 +21,22 @@ func New(p *gui.Node) *LogSettings { // 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) { + 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} + if !d.Ready() { + return false + } return true } -- cgit v1.2.3