homebrew: Added a Back button.
- Fixed an issue where entering through Menus could trap the user inside the menu.
This commit is contained in:
1 parent
dbb0501420
commit
4540dd0112
1 file changed
+7
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user