nocui works

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-27 09:03:29 -06:00
parent df97de0eb4
commit a32edd610a
3 changed files with 7 additions and 7 deletions

View File

@ -45,13 +45,13 @@ func doAction(a widget.Action) {
switch a.ActionType { switch a.ActionType {
case widget.Show: case widget.Show:
n.State.Visable = true n.State.Hidden = true
case widget.Hide: case widget.Hide:
n.State.Visable = false n.State.Hidden = false
case widget.Enable: case widget.Enable:
n.State.Visable = true n.State.Enable = true
case widget.Disable: case widget.Disable:
n.State.Visable = false n.State.Enable = false
case widget.Get: case widget.Get:
log.Warn("value =", n.State.Value) log.Warn("value =", n.State.Value)
case widget.GetText: case widget.GetText:

View File

@ -21,10 +21,10 @@ func init() {
short := "nocui" short := "nocui"
NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff") 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") WARN = log.NewFlag("WARN", true, full, short, "bad things")
SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff") 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")
} }

View File

@ -21,7 +21,7 @@ func init() {
log.Log(INFO, "Init() END") log.Log(INFO, "Init() END")
simpleStdin() go simpleStdin()
} }
// this must be defined for plugin's, but is never run // this must be defined for plugin's, but is never run