mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
feat: 给最小化模拟器添加超时时间
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user