mirror of https://github.com/keeweb/keeweb.git
fix #1794: update installation on Windows when minimize instead of close is enabled
This commit is contained in:
parent
7e030320f5
commit
b90ffc4d3f
|
@ -350,7 +350,6 @@ class AppView extends View {
|
||||||
launcherBeforeQuit() {
|
launcherBeforeQuit() {
|
||||||
// this is currently called only on macos
|
// this is currently called only on macos
|
||||||
const event = {
|
const event = {
|
||||||
fromBeforeQuit: true,
|
|
||||||
preventDefault() {}
|
preventDefault() {}
|
||||||
};
|
};
|
||||||
const result = this.beforeUnload(event);
|
const result = this.beforeUnload(event);
|
||||||
|
@ -371,10 +370,8 @@ class AppView extends View {
|
||||||
}
|
}
|
||||||
|
|
||||||
let minimizeInsteadOfClose = this.model.settings.minimizeOnClose;
|
let minimizeInsteadOfClose = this.model.settings.minimizeOnClose;
|
||||||
if (e.fromBeforeQuit) {
|
if (Launcher.quitOnRealQuitEventIfMinimizeOnQuitIsEnabled()) {
|
||||||
if (Launcher.quitOnRealQuitEventIfMinimizeOnQuitIsEnabled()) {
|
minimizeInsteadOfClose = false;
|
||||||
minimizeInsteadOfClose = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.model.files.hasDirtyFiles()) {
|
if (this.model.files.hasDirtyFiles()) {
|
||||||
|
|
Loading…
Reference in New Issue