From 0363b73adb75714c94a7a7cea2840a9c40ee006e Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Sun, 11 Oct 2020 21:16:29 +0200 Subject: Do not call installer callbacks for non-active plugins. --- src/installationmanager.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/installationmanager.cpp') diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index a755b0cb..86d9ca1b 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -872,7 +872,9 @@ QStringList InstallationManager::getSupportedExtensions() const void InstallationManager::notifyInstallationStart(QString const& archive, bool reinstallation, ModInfo::Ptr currentMod) { for (auto* installer : m_Installers) { - installer->onInstallationStart(archive, reinstallation, currentMod.get()); + if (installer->isActive()) { + installer->onInstallationStart(archive, reinstallation, currentMod.get()); + } } } @@ -881,6 +883,8 @@ void InstallationManager::notifyInstallationEnd( ModInfo::Ptr newMod) { for (auto* installer : m_Installers) { - installer->onInstallationEnd(result, newMod.get()); + if (installer->isActive()) { + installer->onInstallationEnd(result, newMod.get()); + } } } -- cgit v1.3.1