From 6030a1d1fcceae8bd4063362e9c1dbe684a4732b Mon Sep 17 00:00:00 2001 From: Silarn Date: Tue, 29 Jan 2019 20:29:23 -0600 Subject: Sorting logic fix and show last updated date --- src/modinfo.cpp | 2 +- src/modlist.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modinfo.cpp b/src/modinfo.cpp index 5d5cb57e..e9cfd77b 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -326,7 +326,7 @@ int ModInfo::autoUpdateCheck(PluginContainer *pluginContainer, QObject *receiver } std::sort(sortedMods.begin(), sortedMods.end(), [](QSharedPointer a, QSharedPointer b) -> bool { - return a->getLastNexusUpdate() > b->getLastNexusUpdate(); + return a->getLastNexusUpdate() < b->getLastNexusUpdate(); }); if (sortedMods.size() > 10) diff --git a/src/modlist.cpp b/src/modlist.cpp index 1ec5b556..8c502f99 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -465,6 +465,7 @@ QVariant ModList::data(const QModelIndex &modelIndex, int role) const .arg(modInfo->getLastNexusUpdate().toLocalTime().addSecs(3600).time().toString(Qt::DefaultLocaleShortDate)); } else { text += "
" + tr("This mod is eligible for an update check."); + text += "
" + tr("It was last checked on %1").arg(modInfo->getLastNexusUpdate().toLocalTime().toString(Qt::DefaultLocaleShortDate)); } } return text; -- cgit v1.3.1