From 5a24461b59b49f622283951e1891559f6323a42d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 29 May 2019 11:07:14 -0700 Subject: fix crash Signed-off-by: Jeff Carr --- gui.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gui.go') diff --git a/gui.go b/gui.go index 58a9bd2..407984f 100644 --- a/gui.go +++ b/gui.go @@ -232,11 +232,12 @@ func CreateFontButton(action string) *ButtonMap { var newBM ButtonMap newBM.Action = action newBM.FB = newB - newBM.AH = &myAH + newBM.AH = myAH Data.AllButtons = append(Data.AllButtons, newBM) newB.OnChanged(func (*ui.FontButton) { - mouseClick(&newBM) + log.Println("FontButton.OnChanged() START mouseClick(&newBM)", &newBM) + // mouseClick(&newBM) }) return &newBM } -- cgit v1.2.3