diff --git a/hub/route/proxies.go b/hub/route/proxies.go index 6b9f7c70..5cb084f9 100644 --- a/hub/route/proxies.go +++ b/hub/route/proxies.go @@ -97,6 +97,10 @@ func updateProxy(w http.ResponseWriter, r *http.Request) { } cachefile.Cache().SetSelected(proxy.Name(), req.Name) + if SwitchProxiesCallback != nil { + // refresh tray menu + go SwitchProxiesCallback(proxy.Name(), req.Name) + } render.NoContent(w, r) }