summaryrefslogtreecommitdiff
path: root/src/installationmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/installationmanager.cpp')
-rw-r--r--src/installationmanager.cpp8
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());
+ }
}
}