mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-03 19:15:04 +03:00
Bug fix
This commit is contained in:
@@ -261,9 +261,16 @@ namespace v2rayN.ViewModels
|
|||||||
SelectedMoveToGroup = new();
|
SelectedMoveToGroup = new();
|
||||||
SelectedRouting = new();
|
SelectedRouting = new();
|
||||||
SelectedServer = new();
|
SelectedServer = new();
|
||||||
if (_config.tunModeItem.enableTun && Utils.IsAdministrator())
|
if (_config.tunModeItem.enableTun)
|
||||||
{
|
{
|
||||||
EnableTun = true;
|
if (Utils.IsAdministrator())
|
||||||
|
{
|
||||||
|
EnableTun = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_config.tunModeItem.enableTun = EnableTun = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_subId = _config.subIndexId;
|
_subId = _config.subIndexId;
|
||||||
|
|
||||||
@@ -1502,7 +1509,7 @@ namespace v2rayN.ViewModels
|
|||||||
Application.Current?.Dispatcher.Invoke((Action)(() =>
|
Application.Current?.Dispatcher.Invoke((Action)(() =>
|
||||||
{
|
{
|
||||||
BlReloadEnabled = true;
|
BlReloadEnabled = true;
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1515,7 +1522,7 @@ namespace v2rayN.ViewModels
|
|||||||
//ConfigHandler.SaveConfig(_config, false);
|
//ConfigHandler.SaveConfig(_config, false);
|
||||||
|
|
||||||
ChangeSystemProxyStatus(_config.sysProxyType, false);
|
ChangeSystemProxyStatus(_config.sysProxyType, false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CloseCore()
|
private void CloseCore()
|
||||||
@@ -1547,7 +1554,7 @@ namespace v2rayN.ViewModels
|
|||||||
private void ChangeSystemProxyStatus(ESysProxyType type, bool blChange)
|
private void ChangeSystemProxyStatus(ESysProxyType type, bool blChange)
|
||||||
{
|
{
|
||||||
SysProxyHandle.UpdateSysProxy(_config, _config.tunModeItem.enableTun ? true : false);
|
SysProxyHandle.UpdateSysProxy(_config, _config.tunModeItem.enableTun ? true : false);
|
||||||
_noticeHandler?.SendMessage(ResUI.TipChangeSystemProxy + _config.sysProxyType.ToString(), true);
|
_noticeHandler?.SendMessage($"{ResUI.TipChangeSystemProxy} - {_config.sysProxyType.ToString()}", true);
|
||||||
|
|
||||||
Application.Current?.Dispatcher.Invoke((Action)(() =>
|
Application.Current?.Dispatcher.Invoke((Action)(() =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user