diff options
| author | Jeff Carr <[email protected]> | 2025-09-09 05:41:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-09 05:41:01 -0500 |
| commit | a29a774aa43ca332cac6ca3da7242eb31a9bfcf0 (patch) | |
| tree | f5b705ad4a8079a124c70f9c593ab9aaa0c215b6 /doGui.go | |
| parent | d00e96e35405f168791c4b19f0271a0db5b2b0d2 (diff) | |
something, something, GUI codebasev0.0.68
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() { |
