diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index d1a0c0b..f55c09c 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -114,6 +114,7 @@ BOOST_PYTHON_MODULE(mobase) // Tuple: bpy::register_tuple>(); // IOrganizer::waitForApplication + bpy::register_tuple>(); // IProfile::invalidationActive bpy::register_tuple, QString, int>>(); // Variants: @@ -436,7 +437,11 @@ BOOST_PYTHON_MODULE(mobase) .def("absolutePath", &IProfile::absolutePath) .def("localSavesEnabled", &IProfile::localSavesEnabled) .def("localSettingsEnabled", &IProfile::localSettingsEnabled) - .def("invalidationActive", &IProfile::invalidationActive) + .def("invalidationActive", +[](const IProfile* p) { + bool supported; + bool active = p->invalidationActive(&supported); + return std::make_tuple(active, supported); + }) ; bpy::class_("IModRepositoryBridge", bpy::no_init)