summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-04-24 19:28:33 -0500
committerJeff Carr <[email protected]>2025-04-24 19:28:33 -0500
commit7b6af30194302f92798fbd7bdeabf3d72528bcb8 (patch)
tree167ff388991d3b33305322f0fa1205c5f0f4d585 /plugin.go
parente0c55e73d24f12f574706364ffdbf21f14bd1798 (diff)
text edit box kinda works sometimes
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin.go b/plugin.go
index 5356a64..6a61e27 100644
--- a/plugin.go
+++ b/plugin.go
@@ -162,10 +162,10 @@ func (tk *guiWidget) GetText() string {
return ""
}
+// hack. use "textbox widget" to "disable" user events
func hideDisable() {
if me.textbox.tk == nil {
initTextbox()
- me.textbox.tk.prepTextbox()
}
me.textbox.tk.Hide()
@@ -177,6 +177,7 @@ func hideDisable() {
// me.baseGui.DeleteView(me.textbox.tk.v.Name())
}
+// hack. use "textbox widget" to "disable" user events
func showDisable() {
if me.textbox.tk == nil {
initTextbox()