mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
allow opening filter menu panel when other popup is open
This commit is contained in:
parent
02f45b679f
commit
e5a372fa2d
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue