diff options
| author | Silarn <jrim@rimpo.org> | 2019-02-05 16:53:54 -0600 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2019-02-18 21:31:19 -0600 |
| commit | d86d2f704ab0eb91a9051fa818b5195f323467fa (patch) | |
| tree | 9af499b51726fc323037e573be2d2f4e519dbc21 /src/modlist.cpp | |
| parent | a873c7be23f270ab1a929aaf72aa03182e0ddc2c (diff) | |
Implement staggered timeouts bases on age.
* < 1 mo = 2 hours
* < 3 mo = 4 hours
* < 6 mo = 6 hours
* < 1 yr = 12 hours
* > 1 yr = 24 hours
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index 3f8ea4e1..c252d73b 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -467,7 +467,7 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const if (!modInfo->canBeUpdated()) { text += "<br>" + tr("This mod was last checked on %1. It will be available to check after %2.") .arg(modInfo->getLastNexusUpdate().toLocalTime().toString(Qt::DefaultLocaleShortDate)) - .arg(modInfo->getLastNexusUpdate().toLocalTime().addSecs(3600).time().toString(Qt::DefaultLocaleShortDate)); + .arg(modInfo->getExpires().toLocalTime().time().toString(Qt::DefaultLocaleShortDate)); } else { text += "<br>" + tr("This mod is eligible for an update check."); text += "<br>" + tr("It was last checked on %1").arg(modInfo->getLastNexusUpdate().toLocalTime().toString(Qt::DefaultLocaleShortDate)); |
