mirror of https://github.com/buggins/dlangui.git
Execute Dialog close in UI Thread
This helps overcome crashes when closing dialog Inside some event, eg click
This commit is contained in:
parent
5994fe89bb
commit
5767968f4f
src/dlangui/dialogs
|
@ -187,7 +187,7 @@ class Dialog : VerticalLayout {
|
|||
_parentWindow.dispatchAction(action);
|
||||
}
|
||||
if (_popup)
|
||||
_parentWindow.removePopup(_popup);
|
||||
_parentWindow.executeInUiThread( (){ _parentWindow.removePopup(_popup); });
|
||||
else
|
||||
window.close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue