From 2bd755743cd83ab06db66a254f7295d3fbeb776f Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Sat, 20 Feb 2021 12:49:08 -0500 Subject: clarified comment --- src/plugincontainer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/plugincontainer.cpp') diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index 0ebe924d..93a66ece 100644 --- a/src/plugincontainer.cpp +++ b/src/plugincontainer.cpp @@ -953,8 +953,12 @@ void PluginContainer::reloadPlugin(QString const& filepath) void PluginContainer::unloadPlugins() { if (m_Organizer) { - // clearPlugins() must be called before loadPlugins() since it actually - // loads the blacklist + // 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(); } -- cgit v1.3.1