Changed handlers and removed old listeners

Fixed on-close to work correctly on quit
This commit is contained in:
Core 2022-01-30 16:17:29 +00:00
parent 0ab0bd7b77
commit d80bfc8398
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
2 changed files with 47 additions and 46 deletions

View file

@ -3473,22 +3473,7 @@ const app = new Vue({
}
},
closeWindow(){
switch (app.cfg.general.close_behavior) {
case 0:
case '0':
// the minimizeToTray plugin will handle this
window.close();
break;
case 1:
case '1':
ipcRenderer.send('minimize');
break;
case 2:
case '2':
ipcRenderer.send('minimizeTray');
break;
}
ipcRenderer.send('close');
}
}