summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorAl <26797547+Al12rs@users.noreply.github.com>2021-07-16 12:31:29 +0200
committerGitHub <noreply@github.com>2021-07-16 12:31:29 +0200
commit9256739e3ae9cbd1b576388c6df48734cb1bdeae (patch)
treef4440b8fe87a3974b568430a6717422a711bc672 /src/modlist.cpp
parent58e5058a2b524cab655d9562b07d51a5b12d2f14 (diff)
parentd413f673e880eb84b4c7dbc2143322e7dd506e6d (diff)
Merge pull request #1555 from ModOrganizer2/nexus-archived-support
Nexus archived support
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp6
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) {