diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 12:20:49 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 94601b4dc951de9b1efa08120148d2d9766b637c (patch) | |
tree | 0541d8468d78a58f4a2ef069323de475be13d29c /pkg/gui/filtering.go | |
parent | 9ca0073cd7680d2417d4bb0a38a7b02df3dfd651 (diff) |
use context to return to the correct view
Diffstat (limited to 'pkg/gui/filtering.go')
-rw-r--r-- | pkg/gui/filtering.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/gui/filtering.go b/pkg/gui/filtering.go index 2faafe9f2..222e59d14 100644 --- a/pkg/gui/filtering.go +++ b/pkg/gui/filtering.go @@ -3,10 +3,8 @@ package gui func (gui *Gui) validateNotInFilterMode() (bool, error) { if gui.State.Modes.Filtering.Active() { err := gui.ask(askOpts{ - returnToView: gui.g.CurrentView(), - returnFocusOnClose: true, - title: gui.Tr.SLocalize("MustExitFilterModeTitle"), - prompt: gui.Tr.SLocalize("MustExitFilterModePrompt"), + title: gui.Tr.SLocalize("MustExitFilterModeTitle"), + prompt: gui.Tr.SLocalize("MustExitFilterModePrompt"), handleConfirm: func() error { return gui.exitFilterMode() }, |