fix: keep tray alive during service startup

This commit is contained in:
2026-09-06 14:10:15 +00:00
parent 1527f561b5
commit 158fd8f3aa
+3 -3
View File
@@ -139,10 +139,10 @@ func Run(ctx context.Context, output io.Writer) error {
}
defer winapi.CloseHandle(mutex)
response, err := Request(ctx, Frame{Action: ActionStatus})
if err != nil {
return fmt.Errorf("connect to RVBox service: %w", err)
tooltip := "RVBox service unavailable"
if err == nil {
tooltip = string(response.Payload)
}
tooltip := string(response.Payload)
if tooltip == "" {
tooltip = "RVBox service"
}