diff options
| author | Jeff Carr <[email protected]> | 2024-01-06 14:23:19 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-06 14:23:19 -0600 |
| commit | ba3d5a3cb24429692a1d799e73a9d53cc798212e (patch) | |
| tree | 939c1a00155dfc69583bfba667730db6e13368bf /gui.go | |
| parent | 398d9fe3c44bdc8832fbf290beea7b6d13538f4b (diff) | |
more isolation of Update() pieces
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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() |
