mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 01:42:38 +01:00
Codechange: Use window parent association for dropdowns.
This replaces the separate window class and number properties, and allows the window system to close dropdowns automatically.
This commit is contained in:
committed by
Loïc Guilloux
parent
2d8d9c49c4
commit
81e5cd23e0
@@ -2229,7 +2229,7 @@ struct GameSettingsWindow : Window {
|
||||
|
||||
if (this->valuedropdown_entry == pe) {
|
||||
/* unclick the dropdown */
|
||||
HideDropDownMenu(this);
|
||||
this->CloseChildWindows(WC_DROPDOWN_MENU);
|
||||
this->closing_dropdown = false;
|
||||
this->valuedropdown_entry->SetButtons(0);
|
||||
this->valuedropdown_entry = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user