diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-03 14:54:55 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-10 00:23:01 +1100 |
commit | 4912205adb5e8e245b33b8e0d5581bcf0ec37e8a (patch) | |
tree | 90e28657c0af72cd0a880842f88750c01a32834d /pkg/gui/stash_panel.go | |
parent | 9440dcf9de3214927125693e512cdc941ca4e123 (diff) |
remove viper
WIP
Diffstat (limited to 'pkg/gui/stash_panel.go')
-rw-r--r-- | pkg/gui/stash_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/stash_panel.go b/pkg/gui/stash_panel.go index fddffead0..7e1afc2fd 100644 --- a/pkg/gui/stash_panel.go +++ b/pkg/gui/stash_panel.go @@ -45,7 +45,7 @@ func (gui *Gui) refreshStashEntries() error { // specific functions func (gui *Gui) handleStashApply(g *gocui.Gui, v *gocui.View) error { - skipStashWarning := gui.Config.GetUserConfig().GetBool("gui.skipStashWarning") + skipStashWarning := gui.Config.GetUserConfig().Gui.SkipStashWarning apply := func() error { return gui.stashDo("apply") @@ -65,7 +65,7 @@ func (gui *Gui) handleStashApply(g *gocui.Gui, v *gocui.View) error { } func (gui *Gui) handleStashPop(g *gocui.Gui, v *gocui.View) error { - skipStashWarning := gui.Config.GetUserConfig().GetBool("gui.skipStashWarning") + skipStashWarning := gui.Config.GetUserConfig().Gui.SkipStashWarning pop := func() error { return gui.stashDo("pop") |