mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
chore: 移除过时的重连代码
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user