1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-17 11:39:11 +00:00
This commit is contained in:
Kuhnovic
2025-07-19 04:43:23 +00:00
committed by GitHub

View File

@@ -225,7 +225,7 @@ public:
void OnMouseLoop() override
{
/* Disallow closing the window too easily, if timeout is disabled */
if (_right_button_down && !this->is_critical) this->Close();
if ((_right_button_down || _left_button_down) && !this->is_critical) this->Close();
}
void Close([[maybe_unused]] int data = 0) override