actually use the string passed

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-22 11:27:58 -07:00
parent c43ef7e7e3
commit 5c07e5f605
1 changed files with 1 additions and 1 deletions

2
gui.go
View File

@ -183,7 +183,7 @@ func defaultFontButtonClick(button *ui.FontButton) {
} }
func CreateButton(name string, note string, custom func(int, string)) *ui.Button { func CreateButton(name string, note string, custom func(int, string)) *ui.Button {
newB := ui.NewButton("OK") newB := ui.NewButton(name)
newB.OnClicked(defaultButtonClick) newB.OnClicked(defaultButtonClick)