From bab0654c1d7a189cd9672ffd6fe64c195a8c67db Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Wed, 13 Sep 2017 18:12:23 +0300 Subject: [PATCH] fix slow closing of dlangide window --- src/dlangui/platforms/windows/winapp.d | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dlangui/platforms/windows/winapp.d b/src/dlangui/platforms/windows/winapp.d index 68d34c4b..0cf7013d 100644 --- a/src/dlangui/platforms/windows/winapp.d +++ b/src/dlangui/platforms/windows/winapp.d @@ -640,8 +640,12 @@ class Win32Window : Window { _platform.onWindowDestroyed(_hwnd, this); } + protected bool _closeCalled; /// close window override void close() { + if (_closeCalled) + return; + _closeCalled = true; Log.d("Window.close()"); _platform.closeWindow(this); }