fix proxies callback

This commit is contained in:
maze.y2b@gmail.com 2021-11-21 16:57:22 +08:00
parent f7393509a3
commit aeddc8eb1d

View file

@ -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)
}