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)
|
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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user