summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
Diffstat (limited to 'button.go')
-rw-r--r--button.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/button.go b/button.go
index 9a5f93c..908936e 100644
--- a/button.go
+++ b/button.go
@@ -55,10 +55,11 @@ func (b *Button) make(window *sysData) error {
defer b.lock.Unlock()
b.sysData.event = b.Clicked
- err := b.sysData.make(b.initText, window)
+ err := b.sysData.make(window)
if err != nil {
return err
}
+ b.sysData.setText(b.initText)
b.created = true
return nil
}