mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 20:54:08 +01:00
Codechange: Close dropdowns by class instead of id.
This commit is contained in:
committed by
Loïc Guilloux
parent
81e5cd23e0
commit
53709f0bdc
@@ -353,7 +353,7 @@ struct DropdownWindow : Window {
|
||||
*/
|
||||
void ShowDropDownListAt(Window *w, DropDownList &&list, int selected, int button, Rect wi_rect, Colours wi_colour, bool auto_width, bool instant_close)
|
||||
{
|
||||
CloseWindowById(WC_DROPDOWN_MENU, 0);
|
||||
CloseWindowByClass(WC_DROPDOWN_MENU);
|
||||
|
||||
/* The preferred position is just below the dropdown calling widget */
|
||||
int top = w->top + wi_rect.bottom + 1;
|
||||
|
||||
Reference in New Issue
Block a user