From d413f673e880eb84b4c7dbc2143322e7dd506e6d Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Mon, 12 Jul 2021 02:33:05 +0200 Subject: Added ARCHIVED support for nexus update check and download query. Use FileStatus enum instead of scattered int literals. Re-wrote the update check code --- src/modlist.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modlist.cpp') diff --git a/src/modlist.cpp b/src/modlist.cpp index eccba831..b84e90fe 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -441,10 +441,12 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const "(i.e. due to a bug) or the author uses a non-standard versioning scheme and that newest version is actually newer. " "Either way you may want to \"upgrade\"."); } - if (modInfo->getNexusFileStatus() == 4) { + if (modInfo->getNexusFileStatus() == NexusInterface::FileStatus::OLD_VERSION) { text += "
" + tr("This file has been marked as \"Old\". There is most likely an updated version of this file available."); } - else if (modInfo->getNexusFileStatus() == 6) { + else if (modInfo->getNexusFileStatus() == NexusInterface::FileStatus::REMOVED || + modInfo->getNexusFileStatus() == NexusInterface::FileStatus::ARCHIVED || + modInfo->getNexusFileStatus() == NexusInterface::FileStatus::ARCHIVED_HIDDEN) { text += "
" + tr("This file has been marked as \"Deleted\"! You may want to check for an update or remove the nexus ID from this mod!"); } if (modInfo->nexusId() > 0) { -- cgit v1.3.1