diff --git a/src/controllers/plugins/PluginController.cpp b/src/controllers/plugins/PluginController.cpp index 4a63a6f36..02db39649 100644 --- a/src/controllers/plugins/PluginController.cpp +++ b/src/controllers/plugins/PluginController.cpp @@ -28,7 +28,7 @@ void PluginController::initialize(Settings &settings, Paths &paths) settings.pluginSupportEnabled.connect([this](bool enabled) { if (enabled) { - this->actuallyInitialize(); + this->loadPlugins(); } else { @@ -38,8 +38,7 @@ void PluginController::initialize(Settings &settings, Paths &paths) }); } -// this function exists to allow for connecting to enableAnyPlugins option -void PluginController::actuallyInitialize() +void PluginController::loadPlugins() { this->plugins_.clear(); auto dir = QDir(getPaths()->pluginsDirectory); diff --git a/src/controllers/plugins/PluginController.hpp b/src/controllers/plugins/PluginController.hpp index f3a58646a..4cae9134a 100644 --- a/src/controllers/plugins/PluginController.hpp +++ b/src/controllers/plugins/PluginController.hpp @@ -65,7 +65,7 @@ public: static bool isEnabled(const QString &codename); private: - void actuallyInitialize(); + void loadPlugins(); void load(const QFileInfo &index, const QDir &pluginDir, const PluginMeta &meta);