fix proxies callback
This commit is contained in:
parent
f7393509a3
commit
aeddc8eb1d
1 changed files with 4 additions and 0 deletions
|
@ -97,6 +97,10 @@ func updateProxy(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
cachefile.Cache().SetSelected(proxy.Name(), req.Name)
|
cachefile.Cache().SetSelected(proxy.Name(), req.Name)
|
||||||
|
if SwitchProxiesCallback != nil {
|
||||||
|
// refresh tray menu
|
||||||
|
go SwitchProxiesCallback(proxy.Name(), req.Name)
|
||||||
|
}
|
||||||
render.NoContent(w, r)
|
render.NoContent(w, r)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue