mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
Since dropdown menus now get closed if they lose focus, 'instant close' dropdowns (i.e. the toolbar dropdowns) should no longer execute their action to avoid unintended actions.
This commit is contained in:
parent
9f3254b72a
commit
b68d56d94d
@ -199,7 +199,10 @@ struct DropdownWindow : Window {
|
||||
|
||||
void OnFocusLost(bool closing) override
|
||||
{
|
||||
if (!closing) this->Close();
|
||||
if (!closing) {
|
||||
this->instant_close = false;
|
||||
this->Close();
|
||||
}
|
||||
}
|
||||
|
||||
Point OnInitialPosition(int16 sm_width, int16 sm_height, int window_number) override
|
||||
|
Loading…
Reference in New Issue
Block a user