summaryrefslogtreecommitdiff
path: root/src/selfupdater.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-08-24 13:12:46 -0400
committerGitHub <noreply@github.com>2020-08-24 13:12:46 -0400
commit6f232d566e9a7b67eae0cef4aaa46938072b3c20 (patch)
tree27f0dbc9490cb76454c3e978107105afbfda60ed /src/selfupdater.h
parenta4043bab8cfa58e1bb8c2adcb686b7358932cdb6 (diff)
parente9787953d952be19a0d9ea2cc67c21c4e0d23890 (diff)
Merge pull request #1210 from Holt59/improve-mo2-update-details
Show details for all releases from Github when updating.
Diffstat (limited to 'src/selfupdater.h')
-rw-r--r--src/selfupdater.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/selfupdater.h b/src/selfupdater.h
index 8ff14326..f7637292 100644
--- a/src/selfupdater.h
+++ b/src/selfupdater.h
@@ -20,6 +20,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#ifndef SELFUPDATER_H
#define SELFUPDATER_H
+#include <map>
#include <versioninfo.h>
#include <github.h>
@@ -141,7 +142,10 @@ private:
int m_Attempts;
GitHub m_GitHub;
- QJsonObject m_UpdateCandidate;
+
+ // Map from version to release, in decreasing order (first element is the latest release):
+ using CandidatesMap = std::map<MOBase::VersionInfo, QJsonObject, std::greater<>>;
+ CandidatesMap m_UpdateCandidates;
};