mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Rename PluginController::{actuallyInitialize,loadPlugins}
This commit is contained in:
parent
c4a2b5f0ce
commit
627aafb74b
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue