diff options
| author | Jeff Carr <[email protected]> | 2024-01-08 11:05:40 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-08 11:05:40 -0600 |
| commit | b1c311a1e23f8b6557a289e85bb9f402b8523fdf (patch) | |
| tree | 94372234fe06f67af52fa7adb831dd35fb004214 /errorBox.go | |
| parent | e14bd65844c2a4abb4d98e9977de664984567603 (diff) | |
errors are always displayed
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'errorBox.go')
| -rw-r--r-- | errorBox.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/errorBox.go b/errorBox.go index 638e84c..dab2016 100644 --- a/errorBox.go +++ b/errorBox.go @@ -11,7 +11,7 @@ import ( ) type errorBox struct { - name string // the problem name + ready bool parent *gui.Node group *gui.Node @@ -49,11 +49,17 @@ func NewErrorBox(p *gui.Node, name string, ip string) *errorBox { eb.grid.NewLabel("") eb.fixes = make(map[string]*anError) + eb.ready = true return eb } +func (eb *errorBox) Ready() bool { + if eb == nil {return false} + return eb.ready +} func (eb *errorBox) add(kind string, ip string) bool { + if ! eb.Ready() {return false} tmp := kind + " " + ip if eb.fixes[tmp] != nil { log.Log(WARN, "Error is already here", kind, ip) |
