diff options
author | Jesse Duffield Duffield <jesseduffieldduffield@Jesses-MacBook-Pro-3.local> | 2019-02-25 22:11:35 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-02 17:49:30 +1100 |
commit | 8c0ea8f45fde1dfddd23198fcb06ae77468e3a3a (patch) | |
tree | ba923f1b86c26327ceec9f12de619265229bf642 /pkg/gui/status_panel.go | |
parent | afbc028ad6f2b8a580f6b22d13f3313ba5c44cf6 (diff) |
mouse support
Diffstat (limited to 'pkg/gui/status_panel.go')
-rw-r--r-- | pkg/gui/status_panel.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index 9853760e7..8c03c30de 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -48,6 +48,13 @@ func (gui *Gui) handleCheckForUpdate(g *gocui.Gui, v *gocui.View) error { } func (gui *Gui) handleStatusSelect(g *gocui.Gui, v *gocui.View) error { + if gui.popupPanelFocused() { + return nil + } + + if _, err := gui.g.SetCurrentView(v.Name()); err != nil { + return err + } magenta := color.New(color.FgMagenta) dashboardString := strings.Join( |