From 166614d89d140e85e6e8c84fb033a661b94877ab Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 4 Jan 2024 12:34:42 -0600 Subject: [PATCH] changes for the log control window() Signed-off-by: Jeff Carr --- args.go | 4 ---- common.go | 7 +++++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/args.go b/args.go index a254c73..3be387f 100644 --- a/args.go +++ b/args.go @@ -58,8 +58,4 @@ func init() { CHANGE.Subsystem = "gui" CHANGE.Desc = "user changed something" CHANGE.Register() - - for _, s := range log.ListFlags() { - log.Info("go.wit.com/gui/gui ListFlags() returned:", s) - } } diff --git a/common.go b/common.go index 423e21a..ecd3326 100644 --- a/common.go +++ b/common.go @@ -108,8 +108,6 @@ func (n *Node) AppendText(str string) { func (n *Node) GetText() string { if (n.S != n.Text) { log.Warn("GetText() is screwed up. TODO: fix this dumb crap") - stuff := log.ListFlags() - log.Warn("ListFlags() =", stuff) } if (n.S != "") { return n.S @@ -211,6 +209,11 @@ func (n *Node) Window(title string) *Node { return n.NewWindow(title) } +func (n *Node) Ready() bool { + if n == nil {return false} + return true +} + // This should not really do anything. as per the docs, the "Standard()" way // should be the default way /*