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
|
@ -187,7 +187,7 @@ class Dialog : VerticalLayout {
|
||||||
_parentWindow.dispatchAction(action);
|
_parentWindow.dispatchAction(action);
|
||||||
}
|
}
|
||||||
if (_popup)
|
if (_popup)
|
||||||
_parentWindow.removePopup(_popup);
|
_parentWindow.executeInUiThread( (){ _parentWindow.removePopup(_popup); });
|
||||||
else
|
else
|
||||||
window.close();
|
window.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue