mirror of https://github.com/buggins/dlangui.git
fix slow closing of dlangide window
This commit is contained in:
parent
1b49e52dc3
commit
bab0654c1d
|
@ -640,8 +640,12 @@ class Win32Window : Window {
|
||||||
_platform.onWindowDestroyed(_hwnd, this);
|
_platform.onWindowDestroyed(_hwnd, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected bool _closeCalled;
|
||||||
/// close window
|
/// close window
|
||||||
override void close() {
|
override void close() {
|
||||||
|
if (_closeCalled)
|
||||||
|
return;
|
||||||
|
_closeCalled = true;
|
||||||
Log.d("Window.close()");
|
Log.d("Window.close()");
|
||||||
_platform.closeWindow(this);
|
_platform.closeWindow(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue