Rename PluginController::{actuallyInitialize,loadPlugins}

This commit is contained in:
Mm2PL 2023-02-14 12:00:04 +01:00
parent c4a2b5f0ce
commit 627aafb74b
2 changed files with 3 additions and 4 deletions

View file

@ -28,7 +28,7 @@ void PluginController::initialize(Settings &settings, Paths &paths)
settings.pluginSupportEnabled.connect([this](bool enabled) { settings.pluginSupportEnabled.connect([this](bool enabled) {
if (enabled) if (enabled)
{ {
this->actuallyInitialize(); this->loadPlugins();
} }
else else
{ {
@ -38,8 +38,7 @@ void PluginController::initialize(Settings &settings, Paths &paths)
}); });
} }
// this function exists to allow for connecting to enableAnyPlugins option void PluginController::loadPlugins()
void PluginController::actuallyInitialize()
{ {
this->plugins_.clear(); this->plugins_.clear();
auto dir = QDir(getPaths()->pluginsDirectory); auto dir = QDir(getPaths()->pluginsDirectory);

View file

@ -65,7 +65,7 @@ public:
static bool isEnabled(const QString &codename); static bool isEnabled(const QString &codename);
private: private:
void actuallyInitialize(); void loadPlugins();
void load(const QFileInfo &index, const QDir &pluginDir, void load(const QFileInfo &index, const QDir &pluginDir,
const PluginMeta &meta); const PluginMeta &meta);