summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
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()