fix saved state not working on close
This commit is contained in:
parent
2069768221
commit
820b206bda
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ export default class MinimizeToTray {
|
|||
})
|
||||
this._win.on("close", (e :any) => {
|
||||
if (this._forceQuit || this._store.general["close_behavior"] == '0' ) {
|
||||
this._app.exit();
|
||||
this._app.quit();
|
||||
} else if (this._store.general["close_behavior"] == '1') {
|
||||
e.preventDefault();
|
||||
this._win.minimize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue