浏览代码

Smoother GUI while executing an extension with ShowResultsInMsgBox or CopyResults flags

Source commit: e4775e9a9cf1d496c6b6e2ed2fac362508cb8a43
Martin Prikryl 7 年之前
父节点
当前提交
6071c3ffbc
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      source/windows/GUITools.cpp
  2. 1 1
      source/windows/Tools.cpp

+ 1 - 1
source/windows/GUITools.cpp

@@ -405,7 +405,7 @@ void __fastcall ExecuteShellCheckedAndWait(const UnicodeString Command,
         do
         {
           // Same as in ExecuteProcessAndReadOutput
-          WaitResult = WaitForSingleObject(ProcessHandle, 200);
+          WaitResult = WaitForSingleObject(ProcessHandle, 50);
           if (WaitResult == WAIT_FAILED)
           {
             throw Exception(LoadStr(DOCUMENT_WAIT_ERROR));

+ 1 - 1
source/windows/Tools.cpp

@@ -383,7 +383,7 @@ static void __fastcall ExecuteProcessAndReadOutput(const
           }
         }
         // Same as in ExecuteShellCheckedAndWait
-        Sleep(200);
+        Sleep(50);
         Application->ProcessMessages();
       }