summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 14:23:19 -0600
committerJeff Carr <[email protected]>2024-01-06 14:23:19 -0600
commitba3d5a3cb24429692a1d799e73a9d53cc798212e (patch)
tree939c1a00155dfc69583bfba667730db6e13368bf /gui.go
parent398d9fe3c44bdc8832fbf290beea7b6d13538f4b (diff)
more isolation of Update() pieces
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/gui.go b/gui.go
index 3f7fd10..c988ab4 100644
--- a/gui.go
+++ b/gui.go
@@ -44,7 +44,7 @@ func detailsTab(title string) {
// me.domainname = grid.NewLabel("domainname")
grid.NewLabel("hostname -s =")
- me.hostshort = grid.NewLabel("hostname -s")
+ grid.NewLabel("DEPRECATED")
grid.NewLabel("NS records =")
me.NSrr = grid.NewLabel("NS RR's")
@@ -227,17 +227,17 @@ func mainWindow(title string) {
me.details.Toggle()
})
gr.NewButton("linuxstatus.New()", func () {
- me.statusOS = linuxstatus.New()
+ if (me.statusOS == nil) {
+ me.statusOS = linuxstatus.New()
+ }
me.statusOS.SetParent(me.myGui)
me.statusOS.InitWindow()
+ me.statusOS.Make()
+ me.statusOS.Draw2()
})
gr.NewButton("statusOS.Ready()", func () {
me.statusOS.Ready()
})
- gr.NewButton("statusOS.Make()", func () {
- me.statusOS.Make()
- me.statusOS.Draw2()
- })
gr.NewButton("statusOS.Draw()", func () {
me.statusOS.Draw()
me.statusOS.Draw2()