From 1a0de8d839d9f55c3f65bd1ea0baa4b3e7474c22 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 2 Feb 2024 15:13:21 -0600 Subject: [PATCH] show the user changed the dropdown Signed-off-by: Jeff Carr --- Makefile | 2 +- choices.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 97ac461..95b9ed4 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ gocui: build ./gadgetwindow --gui gocui --tmp-log log: - tail -f /tmp/guilogfile + tail -f /tmp/guilogfile /tmp/witgui.* test-tmp-log: build ./gadgetwindow --gui andlabs --tmp-log diff --git a/choices.go b/choices.go index 99b94e6..ee496d5 100644 --- a/choices.go +++ b/choices.go @@ -39,6 +39,9 @@ func newChoices(parent *gui.Node) *choices { c.computers.AddText("Beagleboard") c.computers.AddText("Unmatched Rev B") c.computers.SetText("Beagleboard") + c.computers.Custom = func() { + log.Info("You changed the computer to:", c.computers.String()) + } c.colors = c.grid.NewCombobox().SetProgName("COLORS") c.colors.AddText("Cyan")