diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 10:10:35 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | e5a372fa2d423c9eef0de2dda3d41751573b1bbe (patch) | |
tree | c8bf03bd79be6fa0e2834756a77014da7b9087dc /pkg/gui/filtering_menu_panel.go | |
parent | 02f45b679f65e5d862d0d4cb2d24b0116cd13796 (diff) |
allow opening filter menu panel when other popup is open
Diffstat (limited to 'pkg/gui/filtering_menu_panel.go')
-rw-r--r-- | pkg/gui/filtering_menu_panel.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pkg/gui/filtering_menu_panel.go b/pkg/gui/filtering_menu_panel.go index 935b58af1..649172b45 100644 --- a/pkg/gui/filtering_menu_panel.go +++ b/pkg/gui/filtering_menu_panel.go @@ -6,18 +6,14 @@ import ( ) func (gui *Gui) handleCreateFilteringMenuPanel() error { - if gui.popupPanelFocused() { - return nil - } - fileName := "" - switch gui.currentViewName() { - case "files": + switch gui.currentSideListContext() { + case gui.State.Contexts.Files: node := gui.getSelectedFileNode() if node != nil { fileName = node.GetPath() } - case "commitFiles": + case gui.State.Contexts.CommitFiles: node := gui.getSelectedCommitFileNode() if node != nil { fileName = node.GetPath() |