mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix some bugs around game-specific config load/save (#21033)
This commit is contained in:
1 parent
4de3927cb8
commit
b71ee0ba89
9 files changed
+94
-79
No files matched your search
@@ -52,7 +52,7 @@ void UITwoPaneBaseDialogScreen::CreateViews() {
|
||||
LinearLayout *root = new LinearLayout(ORIENT_VERTICAL, new LayoutParams(FILL_PARENT, FILL_PARENT));
|
||||
|
||||
TopBarFlags topBarFlags = TopBarFlags::Portrait;
|
||||
if (flags_ & TwoPaneFlags::SettingsInContextMenu) {
|
||||
if (flags_ & (TwoPaneFlags::SettingsInContextMenu | TwoPaneFlags::CustomContextMenu)) {
|
||||
topBarFlags |= TopBarFlags::ContextMenuButton;
|
||||
}
|
||||
TopBar *topBar = root->Add(new TopBar(*screenManager()->getUIContext(), topBarFlags, GetTitle()));
|
||||
@@ -62,7 +62,11 @@ void UITwoPaneBaseDialogScreen::CreateViews() {
|
||||
if (flags_ & TwoPaneFlags::SettingsInContextMenu) {
|
||||
topBar->OnContextMenuClick.Add([this](UI::EventParams &e) {
|
||||
this->screenManager()->push(new PopupCallbackScreen([this](UI::ViewGroup *parent) {
|
||||
CreateSettingsViews(parent);
|
||||
if (flags_ & TwoPaneFlags::CustomContextMenu) {
|
||||
CreateContextMenu(parent);
|
||||
} else {
|
||||
CreateSettingsViews(parent);
|
||||
}
|
||||
}, nullptr));
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user