summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
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 ""