mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-13 01:30:53 +02:00
allow opening filter menu panel when other popup is open
This commit is contained in:
@ -6,18 +6,14 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (gui *Gui) handleCreateFilteringMenuPanel() error {
|
func (gui *Gui) handleCreateFilteringMenuPanel() error {
|
||||||
if gui.popupPanelFocused() {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
fileName := ""
|
fileName := ""
|
||||||
switch gui.currentViewName() {
|
switch gui.currentSideListContext() {
|
||||||
case "files":
|
case gui.State.Contexts.Files:
|
||||||
node := gui.getSelectedFileNode()
|
node := gui.getSelectedFileNode()
|
||||||
if node != nil {
|
if node != nil {
|
||||||
fileName = node.GetPath()
|
fileName = node.GetPath()
|
||||||
}
|
}
|
||||||
case "commitFiles":
|
case gui.State.Contexts.CommitFiles:
|
||||||
node := gui.getSelectedCommitFileNode()
|
node := gui.getSelectedCommitFileNode()
|
||||||
if node != nil {
|
if node != nil {
|
||||||
fileName = node.GetPath()
|
fileName = node.GetPath()
|
||||||
|
Reference in New Issue
Block a user