1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-24 18:42:05 +00:00

Update hide tabs (#214)

This commit is contained in:
FlyingBananaTree 2022-09-08 00:28:31 +01:00 committed by GitHub
parent 08d6e1f23f
commit 59d5cb1b06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 26 deletions

View file

@ -1,18 +1,18 @@
{ {
"about": true, "about": true,
"atmosphere": false, "atmosphere": false,
"atmosphereentries": true, "browser": false,
"cfw": true, "cfw": false,
"cheats": true, "cheats": false,
"firmwares": true, "cleanup": false,
"jccolor": true, "custom": true,
"pccolor": true, "downloadpayload": false,
"downloadpayload": true, "firmwares": false,
"rebootpayload": true, "jccolor": false,
"netsettings": true, "language": false,
"browser": true, "move": false,
"move": true, "netsettings": false,
"cleanup": true, "outdatedtitles": false,
"language": true, "pccolor": false,
"hidetabs": true "rebootpayload": false
} }

View file

@ -9,11 +9,10 @@ private:
brls::Label* label; brls::Label* label;
brls::ToggleListItem* about; brls::ToggleListItem* about;
brls::ToggleListItem* ams; brls::ToggleListItem* ams;
brls::ToggleListItem* atmosphereentries;
brls::ToggleListItem* cfws; brls::ToggleListItem* cfws;
brls::ToggleListItem* sigpatches;
brls::ToggleListItem* fws; brls::ToggleListItem* fws;
brls::ToggleListItem* cheats; brls::ToggleListItem* cheats;
brls::ToggleListItem* custom;
brls::ToggleListItem* outdatedTitles; brls::ToggleListItem* outdatedTitles;
brls::ToggleListItem* jccolor; brls::ToggleListItem* jccolor;
brls::ToggleListItem* pccolor; brls::ToggleListItem* pccolor;

View file

@ -32,16 +32,16 @@ HideTabsPage::HideTabsPage() : AppletFrame(true, true)
cfws = new brls::ToggleListItem("menus/main/update_bootloaders"_i18n, util::getBoolValue(hideStatus, "cfw")); cfws = new brls::ToggleListItem("menus/main/update_bootloaders"_i18n, util::getBoolValue(hideStatus, "cfw"));
list->addView(cfws); list->addView(cfws);
sigpatches = new brls::ToggleListItem("menus/main/update_sigpatches"_i18n, util::getBoolValue(hideStatus, "sigpatches"));
list->addView(sigpatches);
fws = new brls::ToggleListItem("menus/main/download_firmware"_i18n, util::getBoolValue(hideStatus, "firmwares")); fws = new brls::ToggleListItem("menus/main/download_firmware"_i18n, util::getBoolValue(hideStatus, "firmwares"));
list->addView(fws); list->addView(fws);
cheats = new brls::ToggleListItem("menus/main/download_cheats"_i18n, util::getBoolValue(hideStatus, "cheats")); cheats = new brls::ToggleListItem("menus/main/download_cheats"_i18n, util::getBoolValue(hideStatus, "cheats"));
list->addView(cheats); list->addView(cheats);
outdatedTitles = new brls::ToggleListItem("menus/main/download_cheats"_i18n, util::getBoolValue(hideStatus, "outdatedtitles")); custom = new brls::ToggleListItem("menus/main/custom_downloads"_i18n, util::getBoolValue(hideStatus, "custom"));
list->addView(custom);
outdatedTitles = new brls::ToggleListItem("menus/tools/outdated_titles"_i18n, util::getBoolValue(hideStatus, "outdatedtitles"));
list->addView(outdatedTitles); list->addView(outdatedTitles);
jccolor = new brls::ToggleListItem("menus/tools/joy_cons"_i18n, util::getBoolValue(hideStatus, "jccolor")); jccolor = new brls::ToggleListItem("menus/tools/joy_cons"_i18n, util::getBoolValue(hideStatus, "jccolor"));
@ -71,18 +71,15 @@ HideTabsPage::HideTabsPage() : AppletFrame(true, true)
language = new brls::ToggleListItem("menus/tools/language"_i18n, util::getBoolValue(hideStatus, "language")); language = new brls::ToggleListItem("menus/tools/language"_i18n, util::getBoolValue(hideStatus, "language"));
list->addView(language); list->addView(language);
atmosphereentries = new brls::ToggleListItem("menus/hide/update_ams_deepsea"_i18n, util::getBoolValue(hideStatus, "atmosphereentries"));
list->addView(atmosphereentries);
list->registerAction("menus/cheats/exclude_titles_save"_i18n, brls::Key::B, [this] { list->registerAction("menus/cheats/exclude_titles_save"_i18n, brls::Key::B, [this] {
json updatedStatus = json::object(); json updatedStatus = json::object();
updatedStatus["about"] = about->getToggleState(); updatedStatus["about"] = about->getToggleState();
updatedStatus["atmosphere"] = ams->getToggleState(); updatedStatus["atmosphere"] = ams->getToggleState();
updatedStatus["atmosphereentries"] = atmosphereentries->getToggleState();
updatedStatus["cfw"] = cfws->getToggleState(); updatedStatus["cfw"] = cfws->getToggleState();
updatedStatus["sigpatches"] = sigpatches->getToggleState();
updatedStatus["firmwares"] = fws->getToggleState(); updatedStatus["firmwares"] = fws->getToggleState();
updatedStatus["cheats"] = cheats->getToggleState(); updatedStatus["cheats"] = cheats->getToggleState();
updatedStatus["custom"] = custom->getToggleState();
updatedStatus["outdatedtitles"] = outdatedTitles->getToggleState();
updatedStatus["jccolor"] = jccolor->getToggleState(); updatedStatus["jccolor"] = jccolor->getToggleState();
updatedStatus["pccolor"] = pccolor->getToggleState(); updatedStatus["pccolor"] = pccolor->getToggleState();
updatedStatus["downloadpayload"] = downloadpayload->getToggleState(); updatedStatus["downloadpayload"] = downloadpayload->getToggleState();