From 1e54385f2a6529d25be4da130909dd56ac5f583b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 19 Feb 2024 19:42:42 -0600 Subject: use the common SetLabel() function --- setText.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setText.go b/setText.go index 67b7f4c..4bc85dc 100644 --- a/setText.go +++ b/setText.go @@ -48,13 +48,13 @@ func (n *Node) SetText(text string) *Node { switch n.WidgetType { case widget.Checkbox: - n.label = text + n.SetLabel(text) case widget.Button: - n.label = text + n.SetLabel(text) case widget.Label: - n.label = text + n.SetLabel(text) case widget.Group: - n.label = text + n.SetLabel(text) case widget.Combobox: n.newString = text n.currentS = text -- cgit v1.2.3