diff options
| author | Jeff Carr <[email protected]> | 2024-01-07 07:09:59 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-07 07:09:59 -0600 |
| commit | 807b3be94f4be4b1aeea48695474aca1bfef4ab2 (patch) | |
| tree | 5af8e1b94ebbe5bb7148848aa926ab74f1ab2793 /gui.go | |
| parent | 930bdc941b1181460f4c38dc708dc53d583ab5d3 (diff) | |
window titles update to correct values
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 19 |
1 files changed, 5 insertions, 14 deletions
@@ -5,6 +5,7 @@ import ( "time" "os" "strings" + "sort" "go.wit.com/log" @@ -12,7 +13,7 @@ import ( "go.wit.com/gui/gadgets" "go.wit.com/gui/cloudflare" "go.wit.com/gui/debugger" - "go.wit.com/control-panels/dns/linuxstatus" + // "go.wit.com/control-panels/dns/linuxstatus" ) // This setups up the dns control panel window @@ -43,17 +44,6 @@ func debugTab(title string) { updateDNS() }) - g2.NewButton("dig +trace", func () { - log.Log(NOW, "TODO: redo this") - // o := shell.Run("dig +trace +noadditional DS " + me.hostname + " @8.8.8.8") - // log.Println(o) - }) - - g2.NewButton("getProcessNameByPort()", func () { - processName := linuxstatus.GetProcessNameByPort(53) - log.Info("Process with port 53:", processName) - }) - g2 = me.debug.Box().NewGroup("debugging options") // makes a slider widget @@ -93,7 +83,8 @@ func displayDNS() string { var a []string a = append(a, "fixme") - all = sortLines(strings.Join(a, "\n")) + sort.Strings(a) + all = strings.Join(a, "\n") if (all == "") { log.Log(NOW, "THERE IS NOT a real A DNS ENTRY") all = "CNAME ipv6.wit.com" @@ -145,7 +136,7 @@ func mainWindow(title string) { statusGrid(me.window.Box()) gr = me.window.Box().NewGroup("debugging") - gr.NewButton("hostname status", func () { + me.statusDNSbutton = gr.NewButton("hostname status", func () { if ! me.statusDNS.Ready() {return} me.statusDNS.window.Toggle() }) |
