summaryrefslogtreecommitdiff
path: root/plugin.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-02 18:16:56 -0600
committerJeff Carr <[email protected]>2025-03-02 18:16:56 -0600
commit4b79e862a7832aa23b0a97ef16d6d9b9559016b7 (patch)
treed7813064aa2601eb05f1399987b269c8d6b3d889 /plugin.go
parentdc329ed18c27c3b7d0467b5fc131438f41ece678 (diff)
some crippled dumb refresh code kinda makes init() work for now
Diffstat (limited to 'plugin.go')
-rw-r--r--plugin.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin.go b/plugin.go
index 36c8099..389ad1b 100644
--- a/plugin.go
+++ b/plugin.go
@@ -36,15 +36,18 @@ func newAdd(n *tree.Node) {
*/
w := n.TK.(*guiWidget)
w.Show()
+ me.refresh = true // testing code to see if refresh can work
}
// for gocui as a GUI plugin, SetTitle & SetLabel are identical to SetText
func setTitle(n *tree.Node, s string) {
setText(n, s)
+ me.refresh = true // testing code to see if refresh can work
}
func setLabel(n *tree.Node, s string) {
setText(n, s)
+ me.refresh = true // testing code to see if refresh can work
}
// setText() and addText() are simple. They take the event sent
@@ -61,6 +64,7 @@ func setText(n *tree.Node, s string) {
}
w := n.TK.(*guiWidget)
w.SetText(s)
+ me.refresh = true // testing code to see if refresh can work
}
func addText(n *tree.Node, s string) {
@@ -74,6 +78,7 @@ func addText(n *tree.Node, s string) {
}
w := n.TK.(*guiWidget)
w.AddText(s)
+ me.refresh = true // testing code to see if refresh can work
}
func (w *guiWidget) deleteGocuiViews() {