Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmd/goose/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ func (app *App) handleReauthentication(ctx context.Context) {
}

// Update tooltip
tooltip := "Goose - Loading PRs..."
tooltip := "Review Goose"
if app.targetUser != "" {
tooltip = fmt.Sprintf("Goose - Loading PRs... (@%s)", app.targetUser)
tooltip = fmt.Sprintf("Review Goose (@%s)", app.targetUser)
}
systray.SetTooltip(tooltip)

Expand Down Expand Up @@ -479,9 +479,9 @@ func (app *App) onReady(ctx context.Context) {
app.setTrayIcon(IconSmiling, PRCounts{}) // Start with smiling icon while loading

// Set tooltip based on whether we're using a custom user
tooltip := "Goose - Loading PRs..."
tooltip := "Review Goose"
if app.targetUser != "" {
tooltip = fmt.Sprintf("Goose - Loading PRs... (@%s)", app.targetUser)
tooltip = fmt.Sprintf("Review Goose (@%s)", app.targetUser)
}
systray.SetTooltip(tooltip)

Expand Down
7 changes: 7 additions & 0 deletions cmd/goose/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,13 @@ func (app *App) setTrayTitle() {
"outgoing_blocked", counts.OutgoingBlocked)
app.systrayInterface.SetTitle(title)
app.setTrayIcon(iconType, counts)

// Update tooltip to match current state
tooltip := "Review Goose"
if app.targetUser != "" {
tooltip = fmt.Sprintf("Review Goose (@%s)", app.targetUser)
}
systray.SetTooltip(tooltip)
}

// addPRSection adds a section of PRs to the menu.
Expand Down