diff options
Diffstat (limited to 'plugin.go')
| -rw-r--r-- | plugin.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -229,7 +229,9 @@ func (tk *guiWidget) Disable() { // log.Info("disable widget in gocui", tk.node.WidgetType, tk.node.ProgName()) switch tk.node.WidgetType { case widget.Box: - log.Info("todo: blank out the window here") + tk.labelN = "Running..." + // log.Info("todo: blank out the window here", tk.String()) + tk.showTextbox() return case widget.Button: tk.setColorDisable() @@ -249,7 +251,10 @@ func (tk *guiWidget) Enable() { // log.Info("enable widget in gocui", tk.node.WidgetType, tk.node.ProgName()) switch tk.node.WidgetType { case widget.Box: - // log.Info("todo: blank out the window here") + // log.Info("todo: un blank the window here") + me.textbox.tk.Hide() + me.textbox.active = false + // log.Info("escaped from textbox") return case widget.Button: tk.restoreEnableColor() |
