Fix double plugin initialization problem

This commit is contained in:
Mm2PL 2023-02-07 21:41:00 +01:00
parent 9b231dc3e9
commit ef70112386
No known key found for this signature in database
GPG key ID: 94AC9B80EFA15ED9

View file

@ -31,6 +31,7 @@ void PluginController::initialize(Settings &settings, Paths &paths)
{
(void)paths;
// actuallyInitialize will be called by this connection
settings.enableAnyPlugins.connect([this](bool enabled) {
if (enabled)
{
@ -47,7 +48,6 @@ void PluginController::initialize(Settings &settings, Paths &paths)
this->plugins_.clear();
}
});
this->actuallyInitialize();
}
// this function exists to allow for connecting to enableAnyPlugins option