From 73d7771703c5c22dc3d34f829144ae975f79dfeb Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Sat, 28 Nov 2020 18:02:39 +0100 Subject: [PATCH] Add refresh parameter for waitForApplication --- src/runner/pythonrunner.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index 6fc0df6..6d8e534 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -372,11 +372,11 @@ BOOST_PYTHON_MODULE(mobase) return (std::uintptr_t) o->startApplication(executable, args, cwd, profile, forcedCustomOverwrite, ignoreCustomOverwrite); }, (bpy::arg("executable"), (bpy::arg("args") = QStringList()), (bpy::arg("cwd") = ""), (bpy::arg("profile") = ""), (bpy::arg("forcedCustomOverwrite") = ""), (bpy::arg("ignoreCustomOverwrite") = false)), bpy::return_value_policy()) - .def("waitForApplication", +[](IOrganizer *o, std::uintptr_t handle) { + .def("waitForApplication", +[](IOrganizer *o, std::uintptr_t handle, bool refresh) { DWORD returnCode; - bool result = o->waitForApplication((HANDLE)handle, &returnCode); + bool result = o->waitForApplication((HANDLE)handle, refresh, &returnCode); return std::make_tuple(result, returnCode); - }, bpy::arg("handle")) + }, (bpy::arg("handle"), bpy::arg("refresh"))) .def("refresh", &IOrganizer::refresh, (bpy::arg("save_changes") = true)) .def("managedGame", &IOrganizer::managedGame, bpy::return_value_policy())