diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-10-16 12:18:49 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-10-16 12:22:34 +1100 |
commit | 36210840962bb448208b6cc628319f994c392075 (patch) | |
tree | 5e0cb1fc55ff05384d12356ede5f4c3133650f53 /pkg/gui/status_panel.go | |
parent | 8c25aaa687a6b0432c73119c521cfea2dd11a9aa (diff) |
small changes
Diffstat (limited to 'pkg/gui/status_panel.go')
-rw-r--r-- | pkg/gui/status_panel.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index 84eb8af52..0adc4d383 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -116,20 +116,20 @@ func (gui *Gui) handleStatusSelect() error { } func (gui *Gui) askForConfigFile(action func(file string) error) error { - confFiles := gui.Config.GetUserConfigFiles() - switch len(confFiles) { + confPaths := gui.Config.GetUserConfigPaths() + switch len(confPaths) { case 0: return errors.New(gui.Tr.NoConfigFileFoundErr) case 1: - return action(confFiles[0]) + return action(confPaths[0]) default: - menuItems := make([]*menuItem, len(confFiles)) - for i, file := range confFiles { + menuItems := make([]*menuItem, len(confPaths)) + for i, file := range confPaths { i := i menuItems[i] = &menuItem{ displayString: file, onPress: func() error { - return action(confFiles[i]) + return action(confPaths[i]) }, } } |