update config with get, gettoggle methods

This commit is contained in:
Bradley Cicenas
2017-02-12 06:03:10 +00:00
parent d5d91398f5
commit d56af1d932
6 changed files with 51 additions and 30 deletions

View File

@@ -75,7 +75,7 @@ func (g *Grid) redrawRows() {
ui.Clear()
// build layout
if config.Global["enableHeader"] == "1" {
if config.GetToggle("enableHeader") {
g.header.SetCount(len(g.containers))
ui.Body.AddRows(g.header.Row())
}