From 6df064282c1a912e606100f24584e10d2c1c5b24 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 9 Feb 2025 17:31:32 -0600 Subject: attempting to force the "Running..." box in the corner --- plugin.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugin.go') 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() -- cgit v1.2.3