summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-22 11:27:58 -0700
committerJeff Carr <[email protected]>2019-05-22 11:27:58 -0700
commit5c07e5f605cb74ed0a1504e2386ba565f37b49f4 (patch)
tree4faeb473f8e7cd5e3703a4be402f819813aae4ff
parentc43ef7e7e3c3048f52c3e4051ef10f111f2ef1a0 (diff)
actually use the string passed
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--gui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.go b/gui.go
index 5d3c357..3218667 100644
--- a/gui.go
+++ b/gui.go
@@ -183,7 +183,7 @@ func defaultFontButtonClick(button *ui.FontButton) {
}
func CreateButton(name string, note string, custom func(int, string)) *ui.Button {
- newB := ui.NewButton("OK")
+ newB := ui.NewButton(name)
newB.OnClicked(defaultButtonClick)