diff --git a/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs b/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs index a4bb644a..4a0260df 100644 --- a/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs +++ b/v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs @@ -445,6 +445,19 @@ public partial class MainWindow : WindowBase break; } + // workaround + Task.Run(async () => + { + await Task.Delay(5000); + Dispatcher.UIThread.Post(() => + { + ViewModel?.TabMainSelectedIndex = 0; + tabMain.SelectedIndex = 0; + tabMain1.SelectedIndex = 0; + tabMain2.SelectedIndex = 0; + }); + }); + RestoreUI(); }