Fix missing layout call after switching repos

This didn't cause a bug so far because switching repos always happens from
within an OnWaitingStatus, so the spinner would take care of calling layout and
draw. However, later in this branch we are going to optimize the spinner so that
it no longer calls layout, at which point this would break, so make sure we
rerender at the point where it's needed.
This commit is contained in:
Stefan Haller
2026-05-06 18:53:32 +02:00
parent e1dff3ffa7
commit 164f7da33d
+2
View File
@@ -428,6 +428,8 @@ func (gui *Gui) onNewRepo(startArgs appTypes.StartArgs, contextKey types.Context
gui.c.Context().Push(contextToPush, types.OnFocusOpts{})
gui.render()
return nil
}