diff options
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -7,10 +7,7 @@ package main import ( "os" - "time" - "go.wit.com/gui" - "go.wit.com/lib/fhelp" "go.wit.com/lib/gadgets" "go.wit.com/lib/protobuf/zoopb" "go.wit.com/log" @@ -38,21 +35,6 @@ func refresh() { } func doGui() { - me.myGui = gui.New() - me.myGui.SetAppDefaultPlugin("gocui") // sets the default GUI plugin to use - if pname, err := me.myGui.Default(); err != nil { - if !fhelp.BuildPlugin("gocui") { - log.Info("You can't run the forge GUI since the plugins did not build", pname) - okExit("") - } else { - if err := me.myGui.LoadToolkitNew("gocui"); err != nil { - log.Info("The plugins built, but still failed to load", pname) - badExit(err) - } - log.Info("The plugins built and loaded!", pname) - } - } - win := gadgets.RawBasicWindow("Zookeeper: (inventory your cluster)") win.Make() win.Show() @@ -84,12 +66,6 @@ func doGui() { grid.NewButton("ConfigSave()", func() { saveMachineState() }) - - // sit here forever refreshing the GUI - for { - refresh() - time.Sleep(90 * time.Second) - } } func saveMachineState() { |
