summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/doGui.go b/doGui.go
index 24ec444..de7fd96 100644
--- a/doGui.go
+++ b/doGui.go
@@ -9,7 +9,6 @@ import (
"time"
"go.wit.com/gui"
- "go.wit.com/lib/fhelp"
"go.wit.com/lib/gadgets"
"go.wit.com/lib/gui/shell"
"go.wit.com/log"
@@ -33,26 +32,6 @@ func debug() {
}
func doGui() {
- if me.forge.Config.GetDefaultGui() == "" {
- me.forge.Config.DefaultGui = "gocui"
- me.forge.ConfigSave()
- }
- me.myGui = gui.New()
- me.myGui.InitEmbed(resources)
- me.myGui.SetAppDefaultPlugin(me.forge.Config.DefaultGui) // 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)
- }
- }
-
mainWindow := gadgets.NewGenericWindow("forged: forge.wit.com", "Current Settings")
mainWindow.Custom = func() {
log.Warn("MAIN WINDOW CLOSE")
@@ -61,9 +40,6 @@ func doGui() {
okExit("")
}
drawWindow(mainWindow)
-
- // sits here forever
- debug()
}
func drawWindow(win *gadgets.GenericWindow) {