From 0c61a1530f2da2571e8285df106b31af73843411 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 10 Jul 2023 14:13:23 +0200 Subject: plugins: fix config value usage in init --- src/plugins/PluginSystem.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/PluginSystem.cpp') 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() { -- cgit v1.2.3