Skip to content

Commit 0b58e14

Browse files
committed
Only redraw menu if there are changes
1 parent 95ed843 commit 0b58e14

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/goose/github.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,10 @@ func (app *App) fetchTurnDataAsync(ctx context.Context, issues []*github.Issue,
610610
}
611611
}
612612

613-
// Check for newly blocked PRs after Turn data is applied
614-
app.checkForNewlyBlockedPRs(ctx)
613+
// Only check for newly blocked PRs if there were actual changes
614+
if actualChanges > 0 {
615+
app.checkForNewlyBlockedPRs(ctx)
616+
}
615617

616618
// Update tray title and menu with final Turn data if menu is already initialized
617619
app.setTrayTitle()

0 commit comments

Comments
 (0)