From 4540dd01126721502f9ce1beb9530f18ee3a0766 Mon Sep 17 00:00:00 2001 From: Yorunokyujitsu <164279972+Yorunokyujitsu@users.noreply.github.com> Date: Tue, 25 Nov 2025 19:12:03 +0900 Subject: [PATCH] homebrew: Added a Back button. - Fixed an issue where entering through Menus could trap the user inside the menu. --- sphaira/source/ui/menus/homebrew.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sphaira/source/ui/menus/homebrew.cpp b/sphaira/source/ui/menus/homebrew.cpp index 6ae61dd..109de3d 100644 --- a/sphaira/source/ui/menus/homebrew.cpp +++ b/sphaira/source/ui/menus/homebrew.cpp @@ -67,6 +67,13 @@ Menu::Menu(u32 flags) : grid::Menu{"Homebrew"_i18n, flags} { }}) ); + // Add Back button only when entered via Menus (Not center, righit, left tab). + if (!(flags & MenuFlag_Tab)) { + this->SetAction(Button::B, Action{"Back"_i18n, [this](){ + this->SetPop(); + }}); + } + OnLayoutChange(); }