mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-24 18:42:05 +00:00
fixes
This commit is contained in:
parent
0569a37aa7
commit
d33631fd9e
3 changed files with 13 additions and 8 deletions
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
|
@ -1,12 +1,19 @@
|
|||
name: Build AIO-switch-updater
|
||||
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
AIO-switch-updater:
|
||||
runs-on: ubuntu-latest
|
||||
container: devkitpro/devkita64_devkitarm
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: update libnx
|
||||
run: |
|
||||
sudo pacman -S libnx
|
||||
- name: Update repo.
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
|
|
|
@ -6,7 +6,7 @@ class ChangelogPage : public brls::AppletFrame
|
|||
{
|
||||
private:
|
||||
brls::List* list;
|
||||
std::vector<brls::ListItem*> items;
|
||||
brls::ListItem* listItem;
|
||||
|
||||
public:
|
||||
ChangelogPage();
|
||||
|
|
|
@ -112,12 +112,10 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true)
|
|||
verTitles.push_back("v2.3.3");
|
||||
changes.push_back("menus/v2_3_3_text"_i18n );
|
||||
|
||||
int nbVersions = verTitles.size();
|
||||
items.reserve(nbVersions);
|
||||
for(int i = nbVersions -1 ; i >= 0; i--){
|
||||
items[i] = new brls::ListItem(verTitles[i]);
|
||||
for(int i = verTitles.size() -1 ; i >= 0; i--){
|
||||
listItem = new brls::ListItem(verTitles[i]);
|
||||
change = changes[i];
|
||||
items[i]->getClickEvent()->subscribe([&, change](brls::View* view){
|
||||
listItem->getClickEvent()->subscribe([&, change](brls::View* view){
|
||||
brls::Dialog* dialog = new brls::Dialog(change);
|
||||
brls::GenericEvent::Callback callback = [dialog](brls::View* view) {
|
||||
dialog->close();
|
||||
|
@ -126,7 +124,7 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true)
|
|||
dialog->setCancelable(true);
|
||||
dialog->open();
|
||||
});
|
||||
list->addView(items[i]);
|
||||
list->addView(listItem);
|
||||
}
|
||||
this->setContentView(list);
|
||||
}
|
Loading…
Reference in a new issue