From a32edd610a8bde4e9528809e008ecd14bf433af3 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 27 Jan 2024 09:03:29 -0600 Subject: [PATCH] nocui works Signed-off-by: Jeff Carr --- action.go | 8 ++++---- args.go | 4 ++-- main.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/action.go b/action.go index 8f73c03..ca8b089 100644 --- a/action.go +++ b/action.go @@ -45,13 +45,13 @@ func doAction(a widget.Action) { switch a.ActionType { case widget.Show: - n.State.Visable = true + n.State.Hidden = true case widget.Hide: - n.State.Visable = false + n.State.Hidden = false case widget.Enable: - n.State.Visable = true + n.State.Enable = true case widget.Disable: - n.State.Visable = false + n.State.Enable = false case widget.Get: log.Warn("value =", n.State.Value) case widget.GetText: diff --git a/args.go b/args.go index c00c0e3..88fcf53 100644 --- a/args.go +++ b/args.go @@ -21,10 +21,10 @@ func init() { short := "nocui" NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff") - INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff") + INFO = log.NewFlag("INFO", true, full, short, "normal debugging stuff") WARN = log.NewFlag("WARN", true, full, short, "bad things") SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff") - ERROR = log.NewFlag("ERROR", false, full, short, "toolkit errors") + ERROR = log.NewFlag("ERROR", true, full, short, "toolkit errors") } diff --git a/main.go b/main.go index b595ecb..8c0c787 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,7 @@ func init() { log.Log(INFO, "Init() END") - simpleStdin() + go simpleStdin() } // this must be defined for plugin's, but is never run