Skip to content

Commit

Permalink
fix controller Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardparis committed Apr 30, 2019
1 parent 2a98369 commit 4f91f10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,12 @@ func (c *controller) OnEnter(g *gocui.Gui, v *gocui.View) error {
return err
}
case views.MENU:
switch c.views.Menu.Current() {
current := c.views.Menu.Current()
if c.views.Main.Name() == current {
return nil
}

switch current {
case views.TRANSACTIONS:
c.views.Main = c.views.Transactions
err := c.views.Transactions.Set(g, 11, 6, maxX-1, maxY)
Expand Down

0 comments on commit 4f91f10

Please sign in to comment.