diff --git a/v2rayN/ProtosLib/ProtosLib.csproj b/v2rayN/ProtosLib/ProtosLib.csproj index dea1f90a..4418da52 100644 --- a/v2rayN/ProtosLib/ProtosLib.csproj +++ b/v2rayN/ProtosLib/ProtosLib.csproj @@ -11,7 +11,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs index ea8db5e2..0ba71e7e 100644 --- a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs @@ -342,6 +342,7 @@ namespace ServiceLib.ViewModels TaskHandler.Instance.RegUpdateTask(_config, UpdateTaskHandler); RefreshRoutingsMenu(); + InboundDisplayStaus(); //RefreshServers(); Reload(); @@ -657,6 +658,7 @@ namespace ServiceLib.ViewModels var ret = await _updateView?.Invoke(EViewAction.OptionSettingWindow, null); if (ret == true) { + InboundDisplayStaus(); //RefreshServers(); Reload(); } @@ -796,8 +798,6 @@ namespace ServiceLib.ViewModels BlSystemProxyNothing = (type == ESysProxyType.Unchanged); BlSystemProxyPac = (type == ESysProxyType.Pac); - InboundDisplayStaus(); - if (blChange) { _updateView?.Invoke(EViewAction.DispatcherRefreshIcon, null); diff --git a/v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj b/v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj index e6b29cd2..2ed2ee1b 100644 --- a/v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj +++ b/v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj @@ -18,12 +18,12 @@ - - - - - - + + + + + +