From 21f16ef0205470d55b89801e18f427c644569407 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Wed, 1 May 2024 13:56:49 +0200 Subject: [PATCH] OptionsTab: reset cached output storage value while resetting settings. Other changes include: * workflow: try manually cloning the repository instead of using the checkout action. --- .github/workflows/rewrite.yml | 6 +++--- source/views/options_tab.cpp | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rewrite.yml b/.github/workflows/rewrite.yml index 59c14fb..ab69a43 100644 --- a/.github/workflows/rewrite.yml +++ b/.github/workflows/rewrite.yml @@ -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: | diff --git a/source/views/options_tab.cpp b/source/views/options_tab.cpp index 5683b4c..317be99 100644 --- a/source/views/options_tab.cpp +++ b/source/views/options_tab.cpp @@ -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); });