Settings and dev settings: Preserve the current tab. Minor UI tweaks.

This commit is contained in:
Henrik Rydgård
2026-04-06 12:07:39 -06:00
parent 8304d8622a
commit 49d3d3dc37
14 changed files with 46 additions and 11 deletions
+10
View File
@@ -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) {