1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-23 22:24:51 +02:00

remove redundant popup checks

This commit is contained in:
Jesse Duffield
2022-01-30 10:45:25 +11:00
parent f97de692e3
commit f0c81ea6dc
3 changed files with 0 additions and 24 deletions

View File

@@ -181,10 +181,6 @@ func (gui *Gui) handleRefresh() error {
}
func (gui *Gui) handleMouseDownMain() error {
if gui.popupPanelFocused() {
return nil
}
switch gui.currentSideContext() {
case gui.State.Contexts.Files:
// set filename, set primary/secondary selected, set line number, then switch context
@@ -199,10 +195,6 @@ func (gui *Gui) handleMouseDownMain() error {
}
func (gui *Gui) handleMouseDownSecondary() error {
if gui.popupPanelFocused() {
return nil
}
switch gui.g.CurrentView() {
case gui.Views.Files:
return gui.Controllers.Files.EnterFile(types.OnFocusOpts{ClickedViewName: "secondary", ClickedViewLineIdx: gui.Views.Secondary.SelectedLineIdx()})