[TIMOB-26457] Windows: Window.exitOnClose doesn't work when only one Window is opened
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2018-10-22T21:11:27.000+0000 |
| Affected Version/s | Release 7.4.0 |
| Fix Version/s | Release 7.5.0 |
| Components | Windows |
| Labels | parity |
| Reporter | Kota Iguchi |
| Assignee | Kota Iguchi |
| Created | 2018-10-17T01:02:10.000+0000 |
| Updated | 2018-10-23T10:10:18.000+0000 |
Description
Window.exitOnClose works only when there are multiple Windows opened. It exits the app when there's only one Window opened.
var win = Ti.UI.createWindow({ exitOnClose: false, backgroundColor: 'green' });
win.addEventListener('open', function () {
win.close();
});
win.open();
Expected: It should not exit the app.
https://github.com/appcelerator/titanium_mobile_windows/pull/1293
FR passed.Waiting for CR and merge.
*Closing ticket.* Fix verified in SDK Version
7.5.0.v20181022235556Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1293