Browse Source

Smoother GUI while executing an extension with ShowResultsInMsgBox or CopyResults flags

Source commit: e4775e9a9cf1d496c6b6e2ed2fac362508cb8a43
Martin Prikryl 7 years ago
parent
commit
6071c3ffbc
2 changed files with 2 additions and 2 deletions
  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();
       }