diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-10 14:13:23 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-10 14:13:23 +0200 |
| commit | 0c61a1530f2da2571e8285df106b31af73843411 (patch) | |
| tree | 5fc966f9e350d19a057a5a1268b03001ffc468f0 /src/plugins/PluginSystem.cpp | |
| parent | da7ea2b33d232ff54645b6de58663934e38eff67 (diff) | |
plugins: fix config value usage in init
Diffstat (limited to 'src/plugins/PluginSystem.cpp')
| -rw-r--r-- | src/plugins/PluginSystem.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/PluginSystem.cpp b/src/plugins/PluginSystem.cpp index 040cfcf1..d550f7d5 100644 --- a/src/plugins/PluginSystem.cpp +++ b/src/plugins/PluginSystem.cpp @@ -112,6 +112,9 @@ void CPluginSystem::unloadPlugin(const CPlugin* plugin, bool eject) { Debug::log(LOG, " [PluginSystem] Plugin %s unloaded.", plugin->name.c_str()); std::erase_if(m_vLoadedPlugins, [&](const auto& other) { return other->m_pHandle == plugin->m_pHandle; }); + + // reload config to fix some stuf like e.g. unloadedPluginVars + g_pConfigManager->m_bForceReload = true; } void CPluginSystem::unloadAllPlugins() { |
