}
}
+ private isPausable() {
+ return !this.profileDelegate.canIgnoreSuspend() && !this.backgroundRunnable();
+ }
+
suspend() {
if (this.suspended || this.inQuit)
return;
addonManager.emit('lcSuspend', this.mainWindow.id);
this.windowList[this.windowList.length - 1].hide();
}
- this.flushData();
- if (this.profileDelegate.canIgnoreSuspend())
- return;
- if (!this.backgroundRunnable()) {
+ if (this.isPausable()) {
this.windowList.forEach((window) => window.setEnabled(false));
if (!this.multitaskingSupport) {
setTimeout(() => {
}, 0);
}
}
+ this.flushData();
}
resume() {
quit() {
console.log('WebApplication : quit');
- this.flushData();
this.windowList.forEach((window) => {
window.removeAllListeners();
window.setEnabled(false);
});
+ this.flushData();
this.inQuit = false;
}