diff options
| author | Tannin <devnull@localhost> | 2015-06-08 18:28:59 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-06-08 18:28:59 +0200 |
| commit | c797af8b7638093f866f7106c22ae46eb2adde0c (patch) | |
| tree | 266039098c9cfa22f8573e7ab4c919147cbd7e1e /src/mainwindow.cpp | |
| parent | ebf6ff3f7695df2022d25f9e9198d37c699cbc94 (diff) | |
increased ui responsiveness while integrated loot is running
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3265981d..952c3178 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4361,7 +4361,7 @@ void MainWindow::on_bossButton_clicked() if (loot != INVALID_HANDLE_VALUE) {
bool isJobHandle = true;
ULONG lastProcessID;
- DWORD res = ::MsgWaitForMultipleObjects(1, &loot, false, 1000, QS_KEY | QS_MOUSE);
+ DWORD res = ::MsgWaitForMultipleObjects(1, &loot, false, 100, QS_KEY | QS_MOUSE);
while ((res != WAIT_FAILED) && (res != WAIT_OBJECT_0)) {
if (isJobHandle) {
if (::QueryInformationJobObject(loot, JobObjectBasicProcessIdList, &info, sizeof(info), &retLen) > 0) {
@@ -4401,7 +4401,7 @@ void MainWindow::on_bossButton_clicked() std::string lootOut = readFromPipe(stdOutRead);
processLOOTOut(lootOut, errorMessages, dialog);
- res = ::MsgWaitForMultipleObjects(1, &loot, false, 1000, QS_KEY | QS_MOUSE);
+ res = ::MsgWaitForMultipleObjects(1, &loot, false, 100, QS_KEY | QS_MOUSE);
}
std::string remainder = readFromPipe(stdOutRead).c_str();
|
