fix #1794: update installation on Windows when minimize instead of close is enabled

This commit is contained in:
antelle 2021-05-06 20:44:09 +02:00
parent 7e030320f5
commit b90ffc4d3f
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 2 additions and 5 deletions

View File

@ -350,7 +350,6 @@ class AppView extends View {
launcherBeforeQuit() {
// this is currently called only on macos
const event = {
fromBeforeQuit: true,
preventDefault() {}
};
const result = this.beforeUnload(event);
@ -371,10 +370,8 @@ class AppView extends View {
}
let minimizeInsteadOfClose = this.model.settings.minimizeOnClose;
if (e.fromBeforeQuit) {
if (Launcher.quitOnRealQuitEventIfMinimizeOnQuitIsEnabled()) {
minimizeInsteadOfClose = false;
}
if (Launcher.quitOnRealQuitEventIfMinimizeOnQuitIsEnabled()) {
minimizeInsteadOfClose = false;
}
if (this.model.files.hasDirtyFiles()) {