Split createAllViews

Split it so createAllViews instanciates the views, and sets those properties
that are independent of the user config, and configureViewProperties which sets
those things that do depend on the user config. For now we call the second right
after the first, but later we'll call configureViewProperties after reloading
the user config.
This commit is contained in:
Stefan Haller 2024-07-14 16:11:09 +02:00
parent e71fc43952
commit be0fa98d11
2 changed files with 48 additions and 20 deletions

View file

@ -679,6 +679,8 @@ func (gui *Gui) Run(startArgs appTypes.StartArgs) error {
return err
}
gui.configureViewProperties()
// onNewRepo must be called after g.SetManager because SetManager deletes keybindings
if err := gui.onNewRepo(startArgs, context.NO_CONTEXT); err != nil {
return err