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