@@ -142,16 +142,21 @@ func (app *App) setTrayTitle() {
142142 counts := app .countPRs ()
143143
144144 // Set title based on PR state
145+ var title string
145146 switch {
146147 case counts .IncomingBlocked == 0 && counts .OutgoingBlocked == 0 :
147- systray . SetTitle ( "😊" )
148+ title = "😊"
148149 case counts .IncomingBlocked > 0 && counts .OutgoingBlocked > 0 :
149- systray . SetTitle ( fmt .Sprintf ("🪿 %d 🎉 %d" , counts .IncomingBlocked , counts .OutgoingBlocked ) )
150+ title = fmt .Sprintf ("🪿 %d 🎉 %d" , counts .IncomingBlocked , counts .OutgoingBlocked )
150151 case counts .IncomingBlocked > 0 :
151- systray . SetTitle ( fmt .Sprintf ("🪿 %d" , counts .IncomingBlocked ) )
152+ title = fmt .Sprintf ("🪿 %d" , counts .IncomingBlocked )
152153 default :
153- systray . SetTitle ( fmt .Sprintf ("🎉 %d" , counts .OutgoingBlocked ) )
154+ title = fmt .Sprintf ("🎉 %d" , counts .OutgoingBlocked )
154155 }
156+
157+ log .Printf ("[TRAY] Setting title: %s (incoming_blocked=%d, outgoing_blocked=%d)" ,
158+ title , counts .IncomingBlocked , counts .OutgoingBlocked )
159+ systray .SetTitle (title )
155160}
156161
157162// sortPRsBlockedFirst creates a sorted copy of PRs with blocked ones first.
@@ -208,8 +213,12 @@ func (app *App) addPRSection(ctx context.Context, prs []PR, sectionTitle string,
208213 // Use party popper for outgoing PRs, goose for incoming PRs
209214 if sectionTitle == "Outgoing" {
210215 title = fmt .Sprintf ("🎉 %s" , title )
216+ log .Printf ("[MENU] Adding party popper to outgoing PR: %s (blocked %v ago)" ,
217+ sortedPRs [i ].URL , time .Since (sortedPRs [i ].FirstBlockedAt ))
211218 } else {
212219 title = fmt .Sprintf ("🪿 %s" , title )
220+ log .Printf ("[MENU] Adding goose to incoming PR: %s (blocked %v ago)" ,
221+ sortedPRs [i ].URL , time .Since (sortedPRs [i ].FirstBlockedAt ))
213222 }
214223 } else {
215224 title = fmt .Sprintf ("• %s" , title )
0 commit comments