diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-18 08:04:15 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | a12d18146ccd2847ef04377703baff58e209373d (patch) | |
tree | 25864a5073d5489ed2557df35885365fb22bc40c /pkg/gui/confirmation_panel.go | |
parent | 119d5be1a46d523696654d811c9e39f9743de33e (diff) |
better logic for taking focus away from popup panels
Diffstat (limited to 'pkg/gui/confirmation_panel.go')
-rw-r--r-- | pkg/gui/confirmation_panel.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/pkg/gui/confirmation_panel.go b/pkg/gui/confirmation_panel.go index 2dabcdf0f..b74d45e3f 100644 --- a/pkg/gui/confirmation_panel.go +++ b/pkg/gui/confirmation_panel.go @@ -167,19 +167,7 @@ func (gui *Gui) prepareConfirmationPanel(currentView *gocui.View, title, prompt return confirmationView, nil } -func (gui *Gui) onNewPopupPanel() { - viewNames := []string{ - "commitMessage", - "credentials", - "menu", - } - for _, viewName := range viewNames { - _, _ = gui.g.SetViewOnBottom(viewName) // TODO: investigate - } -} - func (gui *Gui) createPopupPanel(opts createPopupPanelOpts) error { - gui.onNewPopupPanel() gui.g.Update(func(g *gocui.Gui) error { // delete the existing confirmation panel if it exists if view, _ := g.View("confirmation"); view != nil { |