mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Settings and dev settings: Preserve the current tab. Minor UI tweaks.
This commit is contained in:
1 parent
8304d8622a
commit
49d3d3dc37
14 files changed
+46
-11
No files matched your search
@@ -101,6 +101,10 @@ void UITabbedBaseDialogScreen::CreateViews() {
|
||||
|
||||
// Let the subclass create its tabs.
|
||||
CreateTabs();
|
||||
if (currentTabSetting_) {
|
||||
tabHolder_->SetInitialTab(*currentTabSetting_);
|
||||
}
|
||||
tabHolder_->EnsureTab(tabHolder_->GetCurrentTab());
|
||||
|
||||
if (System_GetPropertyBool(SYSPROP_HAS_KEYBOARD) || System_GetPropertyBool(SYSPROP_HAS_TEXT_INPUT_DIALOG)) {
|
||||
// Hide search if screen is too small.
|
||||
@@ -133,6 +137,12 @@ void UITabbedBaseDialogScreen::CreateViews() {
|
||||
}
|
||||
}
|
||||
|
||||
UITabbedBaseDialogScreen::~UITabbedBaseDialogScreen() {
|
||||
if (currentTabSetting_) {
|
||||
*currentTabSetting_ = GetCurrentTab();
|
||||
}
|
||||
}
|
||||
|
||||
void UITabbedBaseDialogScreen::sendMessage(UIMessage message, const char *value) {
|
||||
UIBaseDialogScreen::sendMessage(message, value);
|
||||
if (message == UIMessage::GAMESETTINGS_SEARCH) {
|
||||
|
||||
Reference in new issue
Block a user