mirror of https://github.com/adamdruppe/arsd.git
fix cross thread bug related to terminald
This commit is contained in:
parent
1e997855a2
commit
cf179cdd34
|
@ -1683,9 +1683,11 @@ class SimpleWindow : CapableOfHandlingNativeEvent, CapableOfBeingDrawnUpon {
|
|||
/// Closes the window. If there are no more open windows, the event loop will terminate.
|
||||
void close() {
|
||||
if (!_closed) {
|
||||
if (onClosing !is null) onClosing();
|
||||
impl.closeWindow();
|
||||
_closed = true;
|
||||
runInGuiThread( {
|
||||
if (onClosing !is null) onClosing();
|
||||
impl.closeWindow();
|
||||
_closed = true;
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue