mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-10-08 22:52:12 +02:00
Change condition that determines whether we are showing the dashboard
Doesn't make a difference currently, since the title is either StatusTitle when the dashboard is showing, or LogTitle when one of the branch logs is showing. This is going to change in the next commit, though.
This commit is contained in:
@@ -196,7 +196,7 @@ func (self *StatusController) switchToOrRotateAllBranchesLogs() {
|
||||
// A bit of a hack to ensure we only rotate to the next branch log command
|
||||
// if we currently are looking at a branch log. Otherwise, we should just show
|
||||
// the current index (if we are coming from the dashboard).
|
||||
if self.c.Views().Main.Title == self.c.Tr.LogTitle {
|
||||
if self.c.Views().Main.Title != self.c.Tr.StatusTitle {
|
||||
self.c.Git().Branch.RotateAllBranchesLogIdx()
|
||||
}
|
||||
self.showAllBranchLogs()
|
||||
|
Reference in New Issue
Block a user