From 6b8ff221a8ee69f1679294d1a328deb85adc0b55 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 5 Feb 2024 15:03:35 -0600 Subject: [PATCH] need to implement heartbeat Signed-off-by: Jeff Carr --- dropdown.go | 2 +- main.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dropdown.go b/dropdown.go index b341216..80041a7 100644 --- a/dropdown.go +++ b/dropdown.go @@ -135,7 +135,7 @@ func (w *guiWidget) dropdownClicked(mouseW, mouseH int) string { if me.dropdownW != nil { log.Log(NOW, "dropdownClicked() send event for", me.dropdownW.cuiName, me.dropdownW.WidgetType) me.dropdownW.SetText(items[itemNumber-1]) - me.dropdownW.node.SetValue(items[itemNumber-1]) + me.dropdownW.node.SetCurrentS(items[itemNumber-1]) me.myTree.SendUserEvent(me.dropdownW.node) } } diff --git a/main.go b/main.go index dbbf258..60760d0 100644 --- a/main.go +++ b/main.go @@ -140,6 +140,8 @@ func gocuiMain() { // attempt to switch to the nocui toolkit log.Sleep(1) me.myTree.SendToolkitLoad("nocui") + log.Sleep(3) + me.myTree.SendToolkitLoad("nocui") // panic("BUMMER") return }