mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-25 02:52: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
|
name: Build AIO-switch-updater
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
AIO-switch-updater:
|
AIO-switch-updater:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: devkitpro/devkita64_devkitarm
|
container: devkitpro/devkita64_devkitarm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: update libnx
|
||||||
|
run: |
|
||||||
|
sudo pacman -S libnx
|
||||||
- name: Update repo.
|
- name: Update repo.
|
||||||
run: |
|
run: |
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
|
@ -6,7 +6,7 @@ class ChangelogPage : public brls::AppletFrame
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
brls::List* list;
|
brls::List* list;
|
||||||
std::vector<brls::ListItem*> items;
|
brls::ListItem* listItem;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ChangelogPage();
|
ChangelogPage();
|
||||||
|
|
|
@ -112,12 +112,10 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true)
|
||||||
verTitles.push_back("v2.3.3");
|
verTitles.push_back("v2.3.3");
|
||||||
changes.push_back("menus/v2_3_3_text"_i18n );
|
changes.push_back("menus/v2_3_3_text"_i18n );
|
||||||
|
|
||||||
int nbVersions = verTitles.size();
|
for(int i = verTitles.size() -1 ; i >= 0; i--){
|
||||||
items.reserve(nbVersions);
|
listItem = new brls::ListItem(verTitles[i]);
|
||||||
for(int i = nbVersions -1 ; i >= 0; i--){
|
|
||||||
items[i] = new brls::ListItem(verTitles[i]);
|
|
||||||
change = changes[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::Dialog* dialog = new brls::Dialog(change);
|
||||||
brls::GenericEvent::Callback callback = [dialog](brls::View* view) {
|
brls::GenericEvent::Callback callback = [dialog](brls::View* view) {
|
||||||
dialog->close();
|
dialog->close();
|
||||||
|
@ -126,7 +124,7 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true)
|
||||||
dialog->setCancelable(true);
|
dialog->setCancelable(true);
|
||||||
dialog->open();
|
dialog->open();
|
||||||
});
|
});
|
||||||
list->addView(items[i]);
|
list->addView(listItem);
|
||||||
}
|
}
|
||||||
this->setContentView(list);
|
this->setContentView(list);
|
||||||
}
|
}
|
Loading…
Reference in a new issue