summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-31 14:02:43 -0600
committerJeff Carr <[email protected]>2024-01-31 14:02:43 -0600
commita84f361287c8c245365838df03c3f6c0eef1794f (patch)
tree46281fb75e8e9f098c8b659eefd57ca513296591 /common.go
parent96ed34f69b91d82a9ded703c43b28063f7508c85 (diff)
deprecate SetValue() as confusingv0.18.0
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.go b/common.go
index dc77989..bd999a4 100644
--- a/common.go
+++ b/common.go
@@ -125,6 +125,14 @@ func (n *Node) SetBool(b bool) {
}
}
+func (n *Node) SetInt(i int) {
+ switch n.WidgetType {
+ default:
+ n.value = i
+ // log.Warn("WidgetType not bool", n.WidgetType, n.id)
+ }
+}
+
func (n *Node) String() string {
if !n.Ready() {
return ""