fix: keep tray alive during service startup
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user