1
0
Fork 0

Fix: Focus settings filter box (only) when the tab becomes active. (#14100)

pull/14105/head
frosch 2025-04-25 12:04:26 +02:00 committed by GitHub
parent f554d799d7
commit 4a09860c53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,6 @@ struct GameOptionsWindow : Window {
this->querystrings[WID_GO_FILTER] = &this->filter_editbox; this->querystrings[WID_GO_FILTER] = &this->filter_editbox;
this->filter_editbox.cancel_button = QueryString::ACTION_CLEAR; this->filter_editbox.cancel_button = QueryString::ACTION_CLEAR;
this->SetFocusedWidget(WID_GO_FILTER);
this->OnInvalidateData(0); this->OnInvalidateData(0);
@ -773,6 +772,7 @@ struct GameOptionsWindow : Window {
} }
this->GetWidget<NWidgetStacked>(WID_GO_TAB_SELECTION)->SetDisplayedPlane(plane); this->GetWidget<NWidgetStacked>(WID_GO_TAB_SELECTION)->SetDisplayedPlane(plane);
if (widget == WID_GO_TAB_ADVANCED) this->SetFocusedWidget(WID_GO_FILTER);
this->SetDirty(); this->SetDirty();
} }