summaryrefslogtreecommitdiff
path: root/checkbox.go
diff options
context:
space:
mode:
Diffstat (limited to 'checkbox.go')
-rw-r--r--checkbox.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/checkbox.go b/checkbox.go
index 2b2a71a..037588d 100644
--- a/checkbox.go
+++ b/checkbox.go
@@ -25,15 +25,15 @@ func NewCheckbox(text string) (c *Checkbox) {
}
// SetText sets the checkbox's text.
-func (c *Checkbox) SetText(text string) (err error) {
+func (c *Checkbox) SetText(text string) {
c.lock.Lock()
defer c.lock.Unlock()
if c.created {
- return c.sysData.setText(text)
+ c.sysData.setText(text)
+ return
}
c.initText = text
- return nil
}
// Text returns the checkbox's text.