diff --git a/v2rayN/ProtosLib/ProtosLib.csproj b/v2rayN/ProtosLib/ProtosLib.csproj index dea1f90aa3..4418da520a 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 ea8db5e2e5..0ba71e7e7d 100644 --- a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs @@ -342,6 +342,7 @@ private void Init() TaskHandler.Instance.RegUpdateTask(_config, UpdateTaskHandler); RefreshRoutingsMenu(); + InboundDisplayStaus(); //RefreshServers(); Reload(); @@ -657,6 +658,7 @@ private async Task OptionSettingAsync() var ret = await _updateView?.Invoke(EViewAction.OptionSettingWindow, null); if (ret == true) { + InboundDisplayStaus(); //RefreshServers(); Reload(); } @@ -796,8 +798,6 @@ private async Task ChangeSystemProxyStatusAsync(ESysProxyType type, bool blChang 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 e6b29cd2d2..2ed2ee1b9d 100644 --- a/v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj +++ b/v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj @@ -18,12 +18,12 @@ - - - - - - + + + + + +