diff options
| author | Jeff Carr <[email protected]> | 2024-01-31 14:02:43 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-31 14:02:43 -0600 |
| commit | a84f361287c8c245365838df03c3f6c0eef1794f (patch) | |
| tree | 46281fb75e8e9f098c8b659eefd57ca513296591 /common.go | |
| parent | 96ed34f69b91d82a9ded703c43b28063f7508c85 (diff) | |
deprecate SetValue() as confusingv0.18.0
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 "" |
