1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

centralise setting of main views context

This commit is contained in:
Jesse Duffield
2020-08-19 08:04:39 +10:00
parent 2488e0044d
commit f0c3d3fc4d
5 changed files with 8 additions and 6 deletions

View File

@ -209,7 +209,6 @@ func (gui *Gui) enterCommitFile(selectedLineIdx int) error {
}
}
gui.changeMainViewsContext("patch-building") // TODO: bring into context code
if err := gui.switchContext(gui.Contexts.PatchBuilding.Context); err != nil {
return err
}