diff options
| author | AL <26797547+Al12rs@users.noreply.github.com> | 2021-07-12 02:33:05 +0200 |
|---|---|---|
| committer | AL <26797547+Al12rs@users.noreply.github.com> | 2021-07-12 02:33:05 +0200 |
| commit | d413f673e880eb84b4c7dbc2143322e7dd506e6d (patch) | |
| tree | f4440b8fe87a3974b568430a6717422a711bc672 /src/modlist.cpp | |
| parent | 4bdb4aff50a97c8ac8030fcd1dcb2b00ccc1e12d (diff) | |
Added ARCHIVED support for nexus update check and download query.
Use FileStatus enum instead of scattered int literals.
Re-wrote the update check code
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 += "<br>" + 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 += "<br>" + 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) { |
