diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-10-11 21:16:29 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-10-11 21:16:29 +0200 |
| commit | 0363b73adb75714c94a7a7cea2840a9c40ee006e (patch) | |
| tree | 119159fd04fb45b7036d17c4dfd4d1e20ca8043d | |
| parent | 149328dcb2ff716f56937bd9ca705ad79c5d1f81 (diff) | |
Do not call installer callbacks for non-active plugins.
| -rw-r--r-- | src/installationmanager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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()); + } } } |
