1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-28 04:12:03 +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,
"atmosphere": false,
"atmosphereentries": true,
"cfw": true,
"cheats": true,
"firmwares": true,
"jccolor": true,
"pccolor": true,
"downloadpayload": true,
"rebootpayload": true,
"netsettings": true,
"browser": true,
"move": true,
"cleanup": true,
"language": true,
"hidetabs": true
"browser": false,
"cfw": false,
"cheats": false,
"cleanup": false,
"custom": true,
"downloadpayload": false,
"firmwares": false,
"jccolor": false,
"language": false,
"move": false,
"netsettings": false,
"outdatedtitles": false,
"pccolor": false,
"rebootpayload": false
}

View file

@ -9,11 +9,10 @@ private:
brls::Label* label;
brls::ToggleListItem* about;
brls::ToggleListItem* ams;
brls::ToggleListItem* atmosphereentries;
brls::ToggleListItem* cfws;
brls::ToggleListItem* sigpatches;
brls::ToggleListItem* fws;
brls::ToggleListItem* cheats;
brls::ToggleListItem* custom;
brls::ToggleListItem* outdatedTitles;
brls::ToggleListItem* jccolor;
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"));
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"));
list->addView(fws);
cheats = new brls::ToggleListItem("menus/main/download_cheats"_i18n, util::getBoolValue(hideStatus, "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);
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"));
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] {
json updatedStatus = json::object();
updatedStatus["about"] = about->getToggleState();
updatedStatus["atmosphere"] = ams->getToggleState();
updatedStatus["atmosphereentries"] = atmosphereentries->getToggleState();
updatedStatus["cfw"] = cfws->getToggleState();
updatedStatus["sigpatches"] = sigpatches->getToggleState();
updatedStatus["firmwares"] = fws->getToggleState();
updatedStatus["cheats"] = cheats->getToggleState();
updatedStatus["custom"] = custom->getToggleState();
updatedStatus["outdatedtitles"] = outdatedTitles->getToggleState();
updatedStatus["jccolor"] = jccolor->getToggleState();
updatedStatus["pccolor"] = pccolor->getToggleState();
updatedStatus["downloadpayload"] = downloadpayload->getToggleState();