mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fix double plugin initialization problem
This commit is contained in:
parent
9b231dc3e9
commit
ef70112386
1 changed files with 1 additions and 1 deletions
|
@ -31,6 +31,7 @@ void PluginController::initialize(Settings &settings, Paths &paths)
|
||||||
{
|
{
|
||||||
(void)paths;
|
(void)paths;
|
||||||
|
|
||||||
|
// actuallyInitialize will be called by this connection
|
||||||
settings.enableAnyPlugins.connect([this](bool enabled) {
|
settings.enableAnyPlugins.connect([this](bool enabled) {
|
||||||
if (enabled)
|
if (enabled)
|
||||||
{
|
{
|
||||||
|
@ -47,7 +48,6 @@ void PluginController::initialize(Settings &settings, Paths &paths)
|
||||||
this->plugins_.clear();
|
this->plugins_.clear();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this->actuallyInitialize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// this function exists to allow for connecting to enableAnyPlugins option
|
// this function exists to allow for connecting to enableAnyPlugins option
|
||||||
|
|
Loading…
Reference in a new issue