homebrew: Added a Back button.

- Fixed an issue where entering through Menus could trap the user inside the menu.
This commit is contained in:
Yorunokyujitsu
2025-11-25 19:12:03 +09:00
parent dbb0501420
commit 4540dd0112

View File

@@ -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();
}