1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-25 02:52:05 +00:00

don't show empty lists

This commit is contained in:
flb 2022-05-16 15:55:12 +02:00
parent b9b8773a05
commit 2a15af3059
3 changed files with 9 additions and 1 deletions

View file

@ -45,6 +45,7 @@ Copy the `aio-switch-updater/` directory to `/switch/` on your sdcard.
## Extras (in the `Tools` tab)
- Reboot to specific payload.
- Consult games with missing updates.
- Change software color scheme of Joy-Cons. Additional color profiles can be found in the releases and should be copied to `config/aio-switch-updater/jc_profiles.json`. Use [this webpage](https://hamletdufromage.github.io/JC-color-picker/JCpicker.html) to generate your own profiles.
- Change software color scheme of Pro Controllers (has to be paired as Player 1). Additional color profiles can be found in the releases and should be copied to `config/aio-switch-updater/pc_profiles.json`.
- Consult installed cheat codes.

View file

@ -70,7 +70,8 @@
"cancel": "Cancel",
"off": "Off",
"selected": "Selected",
"applet_mode_not_supported": "This feature isn't available in applet mode. Please launch AIO-Switch-Updater through title redirection to access it."
"applet_mode_not_supported": "This feature isn't available in applet mode. Please launch AIO-Switch-Updater through title redirection to access it.",
"nothing_to_see": "Nothing to see here!"
},
"changelog": {
"changelog": "Changelog"

View file

@ -64,6 +64,12 @@ void AppPage::PopulatePage()
}
delete[] records;
brls::Logger::debug("count {}", list->getViewsCount());
if(!list->getViewsCount()) {
list->addView(new brls::Label(brls::LabelStyle::DESCRIPTION, "menus/common/nothing_to_see"_i18n, true));
}
this->setContentView(list);
}