From 60f1fb7520d88959ece6cbf52ca9b2036a9d3e0c Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Wed, 12 Nov 2025 21:06:26 -0500 Subject: [PATCH] Improve mouseover title --- cmd/goose/main.go | 8 ++++---- cmd/goose/ui.go | 7 +++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/cmd/goose/main.go b/cmd/goose/main.go index 944f112..321d364 100644 --- a/cmd/goose/main.go +++ b/cmd/goose/main.go @@ -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) @@ -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) diff --git a/cmd/goose/ui.go b/cmd/goose/ui.go index d7b22fd..77f04df 100644 --- a/cmd/goose/ui.go +++ b/cmd/goose/ui.go @@ -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.