feat: 给最小化模拟器添加超时时间

This commit is contained in:
uye
2022-12-22 14:43:13 +08:00
parent 2c8ee7feba
commit 7c520247f4

View File

@@ -429,9 +429,10 @@ namespace MaaWpfGui
process.WaitForInputIdle();
if (MinimizingStartup)
{
while (!IsIconic(process.MainWindowHandle))
for (int i = 0; !IsIconic(process.MainWindowHandle) && i < 5000; ++i)
{
ShowWindow(process.MainWindowHandle, SWMINIMIZE);
Thread.Sleep(1);
}
}