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) defer winapi.CloseHandle(mutex)
response, err := Request(ctx, Frame{Action: ActionStatus}) response, err := Request(ctx, Frame{Action: ActionStatus})
if err != nil { tooltip := "RVBox service unavailable"
return fmt.Errorf("connect to RVBox service: %w", err) if err == nil {
tooltip = string(response.Payload)
} }
tooltip := string(response.Payload)
if tooltip == "" { if tooltip == "" {
tooltip = "RVBox service" tooltip = "RVBox service"
} }