From 9cbf37416650ad615ecddea4e4e64814f8cceb51 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 8 Jun 2014 15:10:08 +0200 Subject: [PATCH] - loot client now only updates the masterlist once per MO session - new event to notify plugins of changed mod priority - overwrite now shows up in the "checked" category instead of "unchecked" - display of "foreign" mods can now be limited to only official content - bugfix: bsa extraction dialog showed up even if the plugin was disabled - bugfix: after detection of foreign mods the priority of the overwrite folder could get messed up - bugfix: when displaying only the context menu for the mod list as a whole, the menu didn't disappear - bugfix: MO crashed when trying to download via the integrated browser --- src/runner/pythonrunner.cpp | 1 + src/runner/uibasewrappers.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index 0681429..adf6f31 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -816,6 +816,7 @@ BOOST_PYTHON_MODULE(mobase) .def("priority", bpy::pure_virtual(&MOBase::IModList::priority)) .def("setPriority", bpy::pure_virtual(&MOBase::IModList::setPriority)) .def("onModStateChanged", bpy::pure_virtual(&MOBase::IModList::onModStateChanged)) + .def("onModMoved", bpy::pure_virtual(&MOBase::IModList::onModMoved)) ; GuessedValue_converters(); diff --git a/src/runner/uibasewrappers.h b/src/runner/uibasewrappers.h index 31df36d..a649c01 100644 --- a/src/runner/uibasewrappers.h +++ b/src/runner/uibasewrappers.h @@ -286,6 +286,7 @@ struct IModListWrapper: MOBase::IModList, boost::python::wrapperget_override("priority")(name); } virtual bool setPriority(const QString &name, int newPriority){ return this->get_override("setPriority")(name, newPriority); } virtual bool onModStateChanged(const std::function &func) { return this->get_override("onModStateChanged")(func); } + virtual bool onModMoved(const std::function &func) { return this->get_override("onModMoved")(func); } }; #endif // UIBASEWRAPPERS_H