Skip to content

Commit

Permalink
OptionsTab: reset cached output storage value while resetting settings.
Browse files Browse the repository at this point in the history
Other changes include:

* workflow: try manually cloning the repository instead of using the checkout action.
  • Loading branch information
DarkMatterCore committed May 1, 2024
1 parent 1ff3df4 commit 21f16ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rewrite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Clone nxdumptool repository
run: |
git clone --recurse-submodules https://github.com/DarkMatterCore/nxdumptool .
- name: Set environment variables
run: |
Expand Down
4 changes: 4 additions & 0 deletions source/views/options_tab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,12 @@ namespace nxdt::views
reset_settings->getClickEvent()->subscribe([this](brls::View* view) {
if (!this->display_notification) return;

/* Reset settings. */
configResetSettings();

/* Reset cached output storage value. */
this->root_view->SetOutputStorage(ConfigOutputStorage_SdCard);

this->DisplayNotification("options_tab/notifications/settings_reset"_i18n);
});

Expand Down

0 comments on commit 21f16ef

Please sign in to comment.