diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-30 10:45:25 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | f0c81ea6dc420786ec58b0f1402d7696e221999d (patch) | |
tree | 4bc5e77decdb5682958f094f9f7891fa6f97905c /pkg/gui/line_by_line_panel.go | |
parent | f97de692e32be50a54a93b75d3686da0495275cb (diff) |
remove redundant popup checks
Diffstat (limited to 'pkg/gui/line_by_line_panel.go')
-rw-r--r-- | pkg/gui/line_by_line_panel.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pkg/gui/line_by_line_panel.go b/pkg/gui/line_by_line_panel.go index b2d5f2382..f55b339a3 100644 --- a/pkg/gui/line_by_line_panel.go +++ b/pkg/gui/line_by_line_panel.go @@ -106,10 +106,6 @@ func (gui *Gui) refreshAndFocusLblPanel(state *LblPanelState) error { func (gui *Gui) handleLBLMouseDown() error { return gui.withLBLActiveCheck(func(state *LblPanelState) error { - if gui.popupPanelFocused() { - return nil - } - state.SelectNewLineForRange(gui.Views.Main.SelectedLineIdx()) return gui.refreshAndFocusLblPanel(state) @@ -118,10 +114,6 @@ func (gui *Gui) handleLBLMouseDown() error { func (gui *Gui) handleMouseDrag() error { return gui.withLBLActiveCheck(func(state *LblPanelState) error { - if gui.popupPanelFocused() { - return nil - } - state.SelectLine(gui.Views.Main.SelectedLineIdx()) return gui.refreshAndFocusLblPanel(state) |