summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-09 17:31:32 -0600
committerJeff Carr <[email protected]>2025-02-09 17:31:32 -0600
commit6df064282c1a912e606100f24584e10d2c1c5b24 (patch)
tree63664dfff77b1f249dd075bb521c84238764440f /plugin.go
parent6ea6ffaa3df04158ebb0df152aa9524653f903d4 (diff)
attempting to force the "Running..." box in the corner
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugin.go b/plugin.go
index 6d9cb46..c8cafd0 100644
--- a/plugin.go
+++ b/plugin.go
@@ -229,9 +229,15 @@ func (tk *guiWidget) Disable() {
// log.Info("disable widget in gocui", tk.node.WidgetType, tk.node.ProgName())
switch tk.node.WidgetType {
case widget.Box:
- tk.labelN = "Running..."
// log.Info("todo: blank out the window here", tk.String())
- tk.showTextbox()
+ r := new(rectType)
+ // startW, startH := tk.Position()
+ r.w0 = 0
+ r.h0 = 0
+ r.w1 = r.w0 + 24
+ r.h1 = r.h0 + 2
+ me.textbox.tk.forceSizes(r)
+ showTextbox("Running...")
return
case widget.Button:
tk.setColorDisable()