mirror of
https://github.com/2dust/v2rayN.git
synced 2026-09-14 02:12:06 +03:00
Fix UI (#10066)
This commit is contained in:
@@ -445,6 +445,19 @@ public partial class MainWindow : WindowBase<MainWindowViewModel>
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user