Add nightly auto-update

- Closes #121
This commit is contained in:
Pk11
2022-05-27 18:14:30 -05:00
committed by Dark98
parent 4474424695
commit af27709fc7
9 changed files with 90 additions and 39 deletions
+2
View File
@@ -134,6 +134,7 @@ Config::Config() {
if (this->json.contains("Firm_Path")) this->firmPath(this->getString("Firm_Path"));
if (this->json.contains("MetaData")) this->metadata(this->getBool("MetaData"));
if (this->json.contains("UpdateCheck")) this->updatecheck(this->getBool("UpdateCheck"));
if (this->json.contains("UpdateNightly")) this->updatenightly(this->getBool("UpdateNightly"));
if (this->json.contains("UseBG")) this->usebg(this->getBool("UseBG"));
if (this->json.contains("CustomFont")) this->customfont(this->getBool("CustomFont"));
if (this->json.contains("Shortcut_Path")) this->shortcut(this->getString("Shortcut_Path"));
@@ -173,6 +174,7 @@ void Config::save() {
this->setString("Firm_Path", this->firmPath());
this->setBool("MetaData", this->metadata());
this->setBool("UpdateCheck", this->updatecheck());
this->setBool("UpdateNightly", this->updatenightly());
this->setBool("UseBG", this->usebg());
this->setBool("CustomFont", this->customfont());
this->setString("Shortcut_Path", this->shortcut());