summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 04:38:01 -0500
committerJeff Carr <[email protected]>2025-09-09 04:38:01 -0500
commitec31997bca317fae2d83cfdea8bd1fcdbe76be93 (patch)
tree9b6a6440f96f9fee5ca8e34ad5312c974cd8deb9 /init.go
parent507d3dac4e0f22a463ed0f2f6486576c5c9a0d23 (diff)
cleaner common gui code
Diffstat (limited to 'init.go')
-rw-r--r--init.go21
1 files changed, 4 insertions, 17 deletions
diff --git a/init.go b/init.go
index 8b8d856..a15d7b6 100644
--- a/init.go
+++ b/init.go
@@ -48,10 +48,6 @@ func colorBanner() {
if version == "" {
log.Warn("Warning: compiled without version", err)
}
- if me.postMustParse != nil {
- log.Info("VERBOSE =", me.postMustParse("VERBOSE"))
- log.Info("FILE =", me.postMustParse("FILE"))
- }
time.Sleep(3200 * time.Millisecond) // done for effect
}
@@ -329,11 +325,6 @@ func New() *Node {
func PreInit(postMustParse func(string) string) *Node {
initNew()
- /*
- if argGui.GuiVerbose {
- INFO.SetBool(true)
- }
- */
me.postMustParse = postMustParse
return me.rootNode
}
@@ -342,14 +333,10 @@ func PreInit(postMustParse func(string) string) *Node {
// try to load andlabs, if that doesn't work, fall back to the console
func (n *Node) Default() (string, error) {
var err error
- /*
- // used to check if plugins load or not
- if argGui.GuiPluginHack != "" {
- // does os.Exec() and does not return
- TestPluginAndExit()
- os.Exit(0)
- }
- */
+ argGui.GuiPlugin = me.postMustParse("DEFAULT")
+ if me.postMustParse("VERBOSE") == "true" {
+ INFO.SetBool(true)
+ }
if argGui.GuiPlugin != "" {
log.Log(WARN, "New.Default() try toolkit =", argGui.GuiPlugin)