diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-12-04 19:50:11 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-12-08 11:51:47 +1100 |
commit | 99a8b1ae8bb93565df8acbe168749278dc768979 (patch) | |
tree | 06f3707ff08a879cf9fac550cf71f42bbe0215bf /pkg/gui/status_panel.go | |
parent | ccc771d8b13d5b0d4635db4463556366470fd4f6 (diff) |
making a start on unidirectional data binding to fix these UI bugs
Diffstat (limited to 'pkg/gui/status_panel.go')
-rw-r--r-- | pkg/gui/status_panel.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index aeae19c50..15f3f27d1 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -42,10 +42,6 @@ func (gui *Gui) refreshStatus(g *gocui.Gui) error { return nil } -func (gui *Gui) renderStatusOptions(g *gocui.Gui) error { - return gui.renderGlobalOptions(g) -} - func (gui *Gui) handleCheckForUpdate(g *gocui.Gui, v *gocui.View) error { gui.Updater.CheckForNewUpdate(gui.onUserUpdateCheckFinish, true) return gui.createMessagePanel(gui.g, v, "", gui.Tr.SLocalize("CheckingForUpdates")) @@ -63,10 +59,7 @@ func (gui *Gui) handleStatusSelect(g *gocui.Gui, v *gocui.View) error { "Buy Jesse a coffee: https://donorbox.org/lazygit", }, "\n\n") - if err := gui.renderString(g, "main", dashboardString); err != nil { - return err - } - return gui.renderStatusOptions(g) + return gui.renderString(g, "main", dashboardString) } func (gui *Gui) handleOpenConfig(g *gocui.Gui, v *gocui.View) error { |