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

@@ -47,7 +47,7 @@ func SortMenu() {
m.BorderFg = ui.ColorCyan
// set cursor position to current sort field
current := config.Global["sortField"]
current := config.Get("sortField")
for n, field := range m.Items {
if field == current {
m.CursorPos = n