Skip to content

Commit

Permalink
Merge pull request #1416 from isanae/plugin-blacklist
Browse files Browse the repository at this point in the history
Broken plugins blacklist
  • Loading branch information
isanae authored Feb 21, 2021
2 parents e473caf + 2bd7557 commit 3fad475
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/plugincontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,16 @@ void PluginContainer::reloadPlugin(QString const& filepath)

void PluginContainer::unloadPlugins()
{
if (m_Organizer) {
// this will clear several structures that can hold on to pointers to
// plugins, as well as read the plugin blacklist from the ini file, which
// is used in loadPlugins() below to skip plugins
//
// note that the first thing loadPlugins() does is call unloadPlugins(),
// so this makes sure the blacklist is always available
m_Organizer->settings().plugins().clearPlugins();
}

bf::for_each(m_Plugins, [](auto& t) { t.second.clear(); });
bf::for_each(m_AccessPlugins, [](auto& t) { t.second.clear(); });
m_Requirements.clear();
Expand Down

0 comments on commit 3fad475

Please sign in to comment.