Added update checker
This commit is contained in:
parent
08680c6e94
commit
eec6cdb8dd
7 changed files with 153 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
#include "GUIStuff/GUIManager.hpp"
|
||||
#include "DrawData.hpp"
|
||||
#include "Helpers/FileDownloader.hpp"
|
||||
#include "Server/CommandList.hpp"
|
||||
#include <filesystem>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
|
@ -105,6 +106,18 @@ class Toolbar {
|
|||
void about_menu_gui();
|
||||
void web_version_welcome();
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
void update_notification_gui();
|
||||
void update_notification_check();
|
||||
struct UpdateCheckerData {
|
||||
bool checkForUpdates = true;
|
||||
bool showGui = false;
|
||||
bool updateCheckDone = false;
|
||||
std::string newVersionStr;
|
||||
std::shared_ptr<FileDownloader::DownloadData> versionFile;
|
||||
} updateCheckerData;
|
||||
#endif
|
||||
|
||||
std::string ownLicenseText;
|
||||
std::vector<std::pair<std::string, std::string>> thirdPartyLicenses;
|
||||
int selectedLicense = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue