summaryrefslogtreecommitdiffstatshomepage
path: root/textlabel.go
diff options
context:
space:
mode:
Diffstat (limited to 'textlabel.go')
-rw-r--r--textlabel.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/textlabel.go b/textlabel.go
index 299590a7..073a2ba6 100644
--- a/textlabel.go
+++ b/textlabel.go
@@ -29,8 +29,7 @@ func NewTextLabelWithStyle(parent Container, style uint32) (*TextLabel, error) {
return tl.Text()
},
func(v interface{}) error {
- _, err := tl.setText(assertStringOr(v, ""))
- return err
+ return tl.SetText(assertStringOr(v, ""))
},
tl.textChangedPublisher.Event()))