https://github.com/2dust/v2rayN/issues/10113
This commit is contained in:
2dust
2026-09-08 20:32:26 +08:00
parent ed4dd7f6d9
commit 8b8e579bc8
2 changed files with 5 additions and 15 deletions

View File

@@ -695,7 +695,7 @@ public partial class MainWindowViewModel : MyReactiveObject
{
return;
}
await ProfilesViewModel.SetSpeedTestResult(new()
{
IndexId = profileItem.IndexId,
@@ -739,7 +739,10 @@ public partial class MainWindowViewModel : MyReactiveObject
RxSchedulers.MainThreadScheduler.Schedule(() =>
{
ShowClashUI = showClashUI;
TabMainSelectedIndex = showClashUI ? TabMainSelectedIndex : 0;
if (!showClashUI || TabMainSelectedIndex < 0)
{
TabMainSelectedIndex = 0;
}
});
}

View File

@@ -447,19 +447,6 @@ 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();
}