fix saved state not working on close

This commit is contained in:
vapormusic 2022-01-28 17:28:06 +07:00
parent 2069768221
commit 820b206bda

View file

@ -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();