Bug fix
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run

https://github.com/2dust/v2rayN/issues/7914
This commit is contained in:
2dust 2025-09-09 17:55:15 +08:00
parent 6ffb3bd30c
commit 8e0c5cb9aa
4 changed files with 2 additions and 3 deletions

View file

@ -235,6 +235,7 @@ public class MainWindowViewModel : MyReactiveObject
{ {
await StatisticsManager.Instance.Init(_config, UpdateStatisticsHandler); await StatisticsManager.Instance.Init(_config, UpdateStatisticsHandler);
} }
await RefreshServers();
BlReloadEnabled = true; BlReloadEnabled = true;
await Reload(); await Reload();

View file

@ -257,7 +257,7 @@ public class ProfilesViewModel : MyReactiveObject
SelectedMoveToGroup = new(); SelectedMoveToGroup = new();
await RefreshSubscriptions(); await RefreshSubscriptions();
await RefreshServers(); //await RefreshServers();
} }
#endregion Init #endregion Init

View file

@ -112,7 +112,6 @@ public partial class ProfilesView : ReactiveUserControl<ProfilesViewModel>
}); });
RestoreUI(); RestoreUI();
ViewModel?.RefreshServers();
} }
private async void LstProfiles_Sorting(object? sender, DataGridColumnEventArgs e) private async void LstProfiles_Sorting(object? sender, DataGridColumnEventArgs e)

View file

@ -106,7 +106,6 @@ public partial class ProfilesView
}); });
RestoreUI(); RestoreUI();
ViewModel?.RefreshServers();
} }
#region Event #region Event