From 8574f8109dde05aadcbdf0423b8347d2d17a4bce Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 29 May 2019 09:54:46 -0700 Subject: crashes Signed-off-by: Jeff Carr --- gui.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gui.go') diff --git a/gui.go b/gui.go index 5c20a9a..1bf40cf 100644 --- a/gui.go +++ b/gui.go @@ -225,17 +225,17 @@ func CreateButton(a *pb.Account, vm *pb.Event_VM, return newB } -func CreateFontButton(action string, note string) *ui.FontButton { +func CreateFontButton(action string) *ButtonMap { newB := ui.NewFontButton() // create a 'fake' button entry for the mouse clicks - var newButtonMap ButtonMap - newButtonMap.Action = action - newButtonMap.FB = newB - Data.AllButtons = append(Data.AllButtons, newButtonMap) + var newBM ButtonMap + newBM.Action = action + newBM.FB = newB + Data.AllButtons = append(Data.AllButtons, newBM) newB.OnChanged(func (*ui.FontButton) { - mouseClick(&newButtonMap) + mouseClick(&newBM) }) - return newB + return &newBM } -- cgit v1.2.3