1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-31 02:19:09 +00:00

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

This commit is contained in:
frosch
2025-04-25 12:04:26 +02:00
committed by GitHub
parent f554d799d7
commit 4a09860c53

View File

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