make plugins wait until after the refresh is completed when they request a refresh

this is a change in behaviour, but it makes sure plugins don't have a stale view of the mods after running something
This commit is contained in:
isanae
2021-01-18 08:21:41 -05:00
parent 181acfe832
commit 0d641f3977
+1 -1
View File
@@ -193,7 +193,7 @@ bool OrganizerProxy::waitForApplication(HANDLE handle, bool refresh, LPDWORD exi
ProcessRunner::WaitFlags waitFlags = ProcessRunner::ForceWait;
if (refresh) {
waitFlags |= ProcessRunner::TriggerRefresh;
waitFlags |= ProcessRunner::TriggerRefresh | ProcessRunner::WaitForRefresh;
}
const auto r = runner