From 627aafb74badbce23e16c0e106af5910edf875f7 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Tue, 14 Feb 2023 12:00:04 +0100 Subject: [PATCH] Rename PluginController::{actuallyInitialize,loadPlugins} --- src/controllers/plugins/PluginController.cpp | 5 ++--- src/controllers/plugins/PluginController.hpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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);