diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2021-02-12 18:08:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-12 18:08:41 +0100 |
| commit | 2fe627c261d54daf7c471898446ea53cbfaebf5b (patch) | |
| tree | 2e4f97e81d335bb971f3dcaee33cfa0ebf29cf4a /src/mainwindow.cpp | |
| parent | 879c37984e1859d209424b6f3dcef1a6d6241aa0 (diff) | |
| parent | eba98e8469a04862d5c2cbac5903e653516c30a6 (diff) | |
Merge pull request #1404 from Al12rs/fix_update_filter
Hopefully fix update filter not showing new mod updates.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 713037e9..0fabd0dc 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2951,7 +2951,6 @@ void MainWindow::nxmModInfoAvailable(QString gameName, int modID, QVariant userD } std::vector<ModInfo::Ptr> modsList = ModInfo::getByModID(gameNameReal, modID); for (auto mod : modsList) { - bool foundUpdate = false; QDateTime now = QDateTime::currentDateTimeUtc(); QDateTime updateTarget = mod->getExpires(); if (now >= updateTarget) { @@ -2959,7 +2958,6 @@ void MainWindow::nxmModInfoAvailable(QString gameName, int modID, QVariant userD // with an older version than the main mod version. if (mod->getNexusFileStatus() != 3 && mod->getNexusFileStatus() != 5) { mod->setNewestVersion(result["version"].toString()); - foundUpdate = true; } // update the LastNexusUpdate time in any case since we did perform the check. mod->setLastNexusUpdate(QDateTime::currentDateTimeUtc()); @@ -2979,9 +2977,7 @@ void MainWindow::nxmModInfoAvailable(QString gameName, int modID, QVariant userD mod->setNexusLastModified(QDateTime::fromSecsSinceEpoch(result["updated_timestamp"].toInt(), Qt::UTC)); mod->saveMeta(); - if (foundUpdate) { - m_OrganizerCore.modList()->notifyChange(ModInfo::getIndex(mod->name())); - } + m_OrganizerCore.modList()->notifyChange(ModInfo::getIndex(mod->name())); } } |
