mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-11 15:54:59 +03:00
Refactor system proxy
This commit is contained in:
@@ -263,7 +263,7 @@ namespace ServiceLib.ViewModels
|
||||
{
|
||||
Logging.SaveLog("MyAppExit Begin");
|
||||
//if (blWindowsShutDown)
|
||||
await _updateView?.Invoke(EViewAction.UpdateSysProxy, true);
|
||||
await SysProxyHandler.UpdateSysProxy(_config, true);
|
||||
|
||||
ConfigHandler.SaveConfig(_config);
|
||||
ProfileExHandler.Instance.SaveTo();
|
||||
@@ -492,12 +492,13 @@ namespace ServiceLib.ViewModels
|
||||
|
||||
await LoadCore();
|
||||
Locator.Current.GetService<StatusBarViewModel>()?.TestServerAvailability();
|
||||
await SysProxyHandler.UpdateSysProxy(_config, false);
|
||||
_updateView?.Invoke(EViewAction.DispatcherReload, null);
|
||||
}
|
||||
|
||||
public void ReloadResult()
|
||||
{
|
||||
//ChangeSystemProxyStatusAsync(_config.systemProxyItem.sysProxyType, false);
|
||||
//Locator.Current.GetService<StatusBarViewModel>()?.ChangeSystemProxyAsync(_config.systemProxyItem.sysProxyType, false);
|
||||
BlReloadEnabled = true;
|
||||
ShowClashUI = _config.IsRunningCore(ECoreType.sing_box);
|
||||
if (ShowClashUI)
|
||||
|
||||
Reference in New Issue
Block a user