소스 검색

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();
       }