Skip to content

Commit 1005b3c

Browse files
authored
Merge pull request #82 from codeGROOVE-dev/icons
Improve mouseover title
2 parents f1b86df + 60f1fb7 commit 1005b3c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

cmd/goose/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@ func (app *App) handleReauthentication(ctx context.Context) {
372372
}
373373

374374
// Update tooltip
375-
tooltip := "Goose - Loading PRs..."
375+
tooltip := "Review Goose"
376376
if app.targetUser != "" {
377-
tooltip = fmt.Sprintf("Goose - Loading PRs... (@%s)", app.targetUser)
377+
tooltip = fmt.Sprintf("Review Goose (@%s)", app.targetUser)
378378
}
379379
systray.SetTooltip(tooltip)
380380

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

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

cmd/goose/ui.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ func (app *App) setTrayTitle() {
263263
"outgoing_blocked", counts.OutgoingBlocked)
264264
app.systrayInterface.SetTitle(title)
265265
app.setTrayIcon(iconType, counts)
266+
267+
// Update tooltip to match current state
268+
tooltip := "Review Goose"
269+
if app.targetUser != "" {
270+
tooltip = fmt.Sprintf("Review Goose (@%s)", app.targetUser)
271+
}
272+
systray.SetTooltip(tooltip)
266273
}
267274

268275
// addPRSection adds a section of PRs to the menu.

0 commit comments

Comments
 (0)