diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-06-18 22:37:16 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-06-18 22:42:57 +0200 |
| commit | 83a4c610489eefab13066f56b17b1907b9c6d9a6 (patch) | |
| tree | b4e4dc239feb94cebf0a3ef5b0982f54f73dc9ea /src/plugins/PluginSystem.cpp | |
| parent | bef1321f00e260ee3031aecd02faf4f53bcb5c66 (diff) | |
plugins: don't update config plugins on state unchanged
fixes #10781
Diffstat (limited to 'src/plugins/PluginSystem.cpp')
| -rw-r--r-- | src/plugins/PluginSystem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/PluginSystem.cpp b/src/plugins/PluginSystem.cpp index 5c7cf10d..bfa3710f 100644 --- a/src/plugins/PluginSystem.cpp +++ b/src/plugins/PluginSystem.cpp @@ -196,6 +196,11 @@ void CPluginSystem::unloadAllPlugins() { } void CPluginSystem::updateConfigPlugins(const std::vector<std::string>& plugins, bool& changed) { + if (m_lastConfigPlugins == plugins) + return; + + m_lastConfigPlugins = plugins; + // unload all plugins that are no longer present for (auto const& p : m_loadedPlugins | std::views::reverse) { if (!p->m_loadedWithConfig || std::ranges::find(plugins, p->m_path) != plugins.end()) |
