From 1bf3d14771e2cf75a6b2ebf724facbb645ca4c3e Mon Sep 17 00:00:00 2001 From: DHR60 <192860629+DHR60@users.noreply.github.com> Date: Wed, 2 Sep 2026 03:28:55 +0000 Subject: [PATCH] Fix UI (#10066) --- v2rayN/v2rayN.Desktop/Views/MainWindow.axaml.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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(); }