init column config menu

This commit is contained in:
Bradley Cicenas
2020-10-25 10:31:51 -04:00
parent ffb96f4e90
commit 7c6b5c54dc
9 changed files with 117 additions and 15 deletions
+2 -3
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)
}