diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2020-09-23 18:40:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 18:40:20 +0200 |
| commit | bf351ff80b42aaf105771ff2078f99bb48b044ea (patch) | |
| tree | 79bf6333fb838ccd6b72a089de0f4865f00ec4eb /src/mainwindow.cpp | |
| parent | 865ae1d802cc58cc812f4802c0b3f8c1ca7a38f3 (diff) | |
| parent | 8980153a2cba833cf8817e15e814bc7b6c2d2230 (diff) | |
Merge pull request #1238 from Holt59/plugin-installer-callbacks
Add IPluginInstaller onInstallationStart and onInstallationEnd callbacks
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 34805518..fb71eca3 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2319,7 +2319,7 @@ void MainWindow::installMod(QString fileName) if (fileName.isEmpty()) { return; } else { - m_OrganizerCore.installMod(fileName, QString()); + m_OrganizerCore.installMod(fileName, false, nullptr, QString()); } } catch (const std::exception &e) { reportError(e.what()); @@ -2808,7 +2808,7 @@ void MainWindow::reinstallMod_clicked() fullInstallationFile = m_OrganizerCore.downloadManager()->getOutputDirectory() + "/" + installationFile; } if (QFile::exists(fullInstallationFile)) { - m_OrganizerCore.installMod(fullInstallationFile, modInfo->name()); + m_OrganizerCore.installMod(fullInstallationFile, true, modInfo, modInfo->name()); } else { QMessageBox::information(this, tr("Failed"), tr("Installation file no longer exists")); } |
