diff --git a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs index 7df04380..1f7b427e 100644 --- a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs @@ -235,6 +235,7 @@ public class MainWindowViewModel : MyReactiveObject { await StatisticsManager.Instance.Init(_config, UpdateStatisticsHandler); } + await RefreshServers(); BlReloadEnabled = true; await Reload(); diff --git a/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs b/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs index f5aeac21..14216fee 100644 --- a/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs @@ -257,7 +257,7 @@ public class ProfilesViewModel : MyReactiveObject SelectedMoveToGroup = new(); await RefreshSubscriptions(); - await RefreshServers(); + //await RefreshServers(); } #endregion Init diff --git a/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs b/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs index 994b0342..c52cad9d 100644 --- a/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/ProfilesView.axaml.cs @@ -112,7 +112,6 @@ public partial class ProfilesView : ReactiveUserControl }); RestoreUI(); - ViewModel?.RefreshServers(); } private async void LstProfiles_Sorting(object? sender, DataGridColumnEventArgs e) diff --git a/v2rayN/v2rayN/Views/ProfilesView.xaml.cs b/v2rayN/v2rayN/Views/ProfilesView.xaml.cs index 54e92181..5f8f7033 100644 --- a/v2rayN/v2rayN/Views/ProfilesView.xaml.cs +++ b/v2rayN/v2rayN/Views/ProfilesView.xaml.cs @@ -106,7 +106,6 @@ public partial class ProfilesView }); RestoreUI(); - ViewModel?.RefreshServers(); } #region Event