diff options
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;
};
|
