Skip to content

Commit bf56a61

Browse files
committed
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.
1 parent 220cde1 commit bf56a61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/gui/controllers/status_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (self *StatusController) switchToOrRotateAllBranchesLogs() {
196196
// A bit of a hack to ensure we only rotate to the next branch log command
197197
// if we currently are looking at a branch log. Otherwise, we should just show
198198
// the current index (if we are coming from the dashboard).
199-
if self.c.Views().Main.Title == self.c.Tr.LogTitle {
199+
if self.c.Views().Main.Title != self.c.Tr.StatusTitle {
200200
self.c.Git().Branch.RotateAllBranchesLogIdx()
201201
}
202202
self.showAllBranchLogs()

0 commit comments

Comments
 (0)