diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-08-23 19:44:55 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-08-23 19:44:55 +0200 |
| commit | 172dda1bceb6b908798e41f90345b74fcadbfd34 (patch) | |
| tree | 69a6b285addb1b6b969b39ac84f1fa9b465727ab /src/selfupdater.h | |
| parent | a4043bab8cfa58e1bb8c2adcb686b7358932cdb6 (diff) | |
Show details for all releases from Github when updating.
Diffstat (limited to 'src/selfupdater.h')
| -rw-r--r-- | src/selfupdater.h | 6 |
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;
};
|
