mirror of https://github.com/OpenTTD/OpenTTD
Fix: Focus settings filter box (only) when the tab becomes active. (#14100)
parent
f554d799d7
commit
4a09860c53
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue