From 0798e102ba360260ec281a0aeee1938d212d8428 Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Fri, 22 Feb 2019 03:45:54 -0600 Subject: Force an update check after installing a mod --- src/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a946bba4..282c9674 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2347,6 +2347,12 @@ void MainWindow::modInstalled(const QString &modName) if (posList.count() == 1) { ui->modList->scrollTo(posList.at(0)); } + + // force an update to happen + std::multimap IDs; + ModInfo::Ptr info = ModInfo::getByIndex(ModInfo::getIndex(modName)); + IDs.insert(std::make_pair(info->getGameName(), info->getNexusID())); + modUpdateCheck(IDs); } void MainWindow::procError(QProcess::ProcessError error) -- cgit v1.3.1