Skip to content

Commit 54e05d3

Browse files
committed
Add back IPlugin::requirements.
1 parent bf05ac1 commit 54e05d3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/mobase/wrappers/pyplugins.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ namespace mo2::python {
144144
.def("init", &IPlugin::init, "organizer"_a)
145145
.def("name", &IPlugin::name)
146146
.def("localizedName", &IPlugin::localizedName)
147+
.def("requirements", &IPlugin::requirements)
147148
.def("settings", &IPlugin::settings)
148149
.def("settingGroups", &IPlugin::settingGroups)
149150
.def("enabledByDefault", &IPlugin::enabledByDefault);

src/mobase/wrappers/pyplugins.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ namespace mo2::python {
4545
{
4646
PYBIND11_OVERRIDE(QString, PluginBase, localizedName, );
4747
}
48+
std::vector<std::shared_ptr<const IPluginRequirement>>
49+
requirements() const override
50+
{
51+
PYBIND11_OVERRIDE(std::vector<std::shared_ptr<const IPluginRequirement>>,
52+
PluginBase, requirements, );
53+
}
4854
QList<Setting> settings() const override
4955
{
5056
PYBIND11_OVERRIDE_PURE(QList<Setting>, PluginBase, settings, );

0 commit comments

Comments
 (0)