diff options
| author | Jeff Carr <[email protected]> | 2024-01-19 12:21:04 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-19 12:21:04 -0600 |
| commit | a1b9ab39f723f73162b15f68e1207ef674ec7ce5 (patch) | |
| tree | 5d4a00f2a412c944089b6eca3d09d3a6299bac4d /logFlag.go | |
| parent | 3b4fb5c4b6d710303c84e37e9f55a38cee3bbb45 (diff) | |
SetValue() and SetChecked()
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'logFlag.go')
| -rw-r--r-- | logFlag.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,13 +35,13 @@ func (f *LogFlag) Get() bool { func (f *LogFlag) Set(b bool) { log.Info("LogFlag.Set() =", b) f.lf.Set(b) - f.c.Set(b) + f.c.SetChecked(b) } func (f *LogFlag) SetDefault() { log.Info("LogFlag.SetDefault() =", f.Default) f.lf.SetDefault() - f.c.Set(f.lf.Get()) + f.c.SetChecked(f.lf.Get()) } func NewLogFlag(n *gui.Node, lf *log.LogFlag) *LogFlag { @@ -58,7 +58,7 @@ func NewLogFlag(n *gui.Node, lf *log.LogFlag) *LogFlag { f.lf.Set(f.c.Bool()) log.Info("LogFlag.Custom() user changed value to =", f.lf.Get()) } - f.c.Set(lf.Get()) + f.c.SetChecked(lf.Get()) return &f } |
