mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-23 12:14:11 +01:00
Codechange: Replace drop down list's default bools with DropDownOptions. (#14837)
Improves maintainability and avoids positional ambiguity.
This commit is contained in:
@@ -1606,7 +1606,7 @@ private:
|
||||
wi_rect.bottom = pt.y;
|
||||
|
||||
w->dd_client_id = client_id;
|
||||
ShowDropDownListAt(w, std::move(list), -1, WID_CL_MATRIX, wi_rect, COLOUR_GREY, true);
|
||||
ShowDropDownListAt(w, std::move(list), -1, WID_CL_MATRIX, wi_rect, COLOUR_GREY, DropDownOption::InstantClose);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1627,7 +1627,7 @@ private:
|
||||
wi_rect.bottom = pt.y;
|
||||
|
||||
w->dd_company_id = company_id;
|
||||
ShowDropDownListAt(w, std::move(list), -1, WID_CL_MATRIX, wi_rect, COLOUR_GREY, true);
|
||||
ShowDropDownListAt(w, std::move(list), -1, WID_CL_MATRIX, wi_rect, COLOUR_GREY, DropDownOption::InstantClose);
|
||||
}
|
||||
/**
|
||||
* Chat button on a Client is clicked.
|
||||
|
||||
Reference in New Issue
Block a user