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() {
|
||||
// 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()) {
|
||||
|
|
Loading…
Reference in New Issue