chore: 移除过时的重连代码

This commit is contained in:
uye
2025-03-19 13:59:26 +08:00
parent 92e81d51be
commit b39ef8d44c

View File

@@ -498,24 +498,6 @@ namespace MaaWpfGui.Main
_logger.Warning("Failed to stop Asst");
}
// TODO: 之后把这个 OnUIThread 拆出来
// ReSharper disable once AsyncVoidLambda
Execute.OnUIThread(
async () =>
{
if (!SettingsViewModel.ConnectSettings.RetryOnDisconnected)
{
return;
}
Instances.TaskQueueViewModel.AddLog(LocalizationHelper.GetString("TryToStartEmulator"), UiLogColor.Error);
EmulatorHelper.KillEmulator();
await Task.Delay(3000);
await Instances.TaskQueueViewModel.Stop();
Instances.TaskQueueViewModel.SetStopped();
Instances.TaskQueueViewModel.LinkStart();
});
break;
case "ScreencapFailed":