If app is backgroundsupport, window cannot be set to false.
Change-Id: I30a7885cb4013257beffab4c95eb10b5fa7a5379
Signed-off-by: liwei <wei90727.li@samsung.com>
this.suspended = true;
this.windowList[this.windowList.length - 1].hide();
this.flushData();
- this.windowList.forEach((window) => window.setEnabled(false));
- if (!this.backgroundRunnable() && !this.multitaskingSupport) {
- setTimeout(() => {
- console.log('multitasking is not supported; quitting app')
- app.quit();
- }, 0);
+ if (!this.backgroundRunnable()) {
+ this.windowList.forEach((window) => window.setEnabled(false));
+ if (!this.multitaskingSupport) {
+ setTimeout(() => {
+ console.log('multitasking is not supported; quitting app')
+ app.quit();
+ }, 0);
+ }
}
}