init column config menu

This commit is contained in:
Bradley Cicenas
2020-01-02 23:02:53 +00:00
parent ffb96f4e90
commit 7c6b5c54dc
9 changed files with 117 additions and 15 deletions

View File

@@ -72,8 +72,7 @@ func Toggle(k string) {
lock.Lock()
defer lock.Unlock()
newVal := !sw.Val
log.Noticef("config change [%s]: %t -> %t", k, sw.Val, newVal)
sw.Val = newVal
sw.Val = !sw.Val
log.Noticef("config change [%s]: %t -> %t", k, !sw.Val, sw.Val)
//log.Errorf("ignoring toggle for non-existant switch: %s", k)
}