summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-06 21:17:06 -0600
committerJeff Carr <[email protected]>2024-01-06 21:17:06 -0600
commite5319cd50ed56a2b4039c8ca503344cc8b0eea0f (patch)
tree282480148bf0089259fd99ee7c4671989a3132df /gui.go
parent5e9f1591cab5602ac9d9f6e6a24f83ba5dc86126 (diff)
status changes to working if it's working
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/gui.go b/gui.go
index 1a4dab9..78539c4 100644
--- a/gui.go
+++ b/gui.go
@@ -151,8 +151,18 @@ func mainWindow(title string) {
me.DnsA = grid.NewLabel("?")
// This is where you figure out what to do next to fix the problems
- gr.NewButton("fix", func () {
- fix()
+ me.fixButton = gr.NewButton("fix", func () {
+ if ! fix() {
+ log.Log(CHANGE, "boo. IPv6 isn't working yet")
+ return
+ }
+ log.Log(CHANGE, "IPv6 WORKED")
+ // update everything here visually for the user
+ hostname := me.statusOS.GetHostname()
+ me.hostname.Set(hostname)
+ me.hostnameStatus.Set("WORKING")
+ me.DnsStatus.Set("WORKING")
+ me.fixButton.Disable()
})
grid.Margin()