summaryrefslogtreecommitdiffstats
path: root/pkg/gui/layout.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/layout.go')
-rw-r--r--pkg/gui/layout.go18
1 files changed, 17 insertions, 1 deletions
diff --git a/pkg/gui/layout.go b/pkg/gui/layout.go
index 14f79cb5a..ec192527b 100644
--- a/pkg/gui/layout.go
+++ b/pkg/gui/layout.go
@@ -149,7 +149,23 @@ func (gui *Gui) layout(g *gocui.Gui) error {
// if you run `lazygit --logs`
// this will let you see these branches as prettified json
// gui.c.Log.Info(utils.AsJson(gui.State.Model.Branches[0:4]))
- return gui.helpers.Confirmation.ResizeCurrentPopupPanel()
+ if err := gui.helpers.Confirmation.ResizeCurrentPopupPanel(); err != nil {
+ return err
+ }
+
+outer:
+ for {
+ select {
+ case f := <-gui.afterLayoutFuncs:
+ if err := f(); err != nil {
+ return err
+ }
+ default:
+ break outer
+ }
+ }
+
+ return nil
}
func (gui *Gui) prepareView(viewName string) (*gocui.View, error) {