Changed handlers and removed old listeners
Fixed on-close to work correctly on quit
This commit is contained in:
parent
0ab0bd7b77
commit
d80bfc8398
2 changed files with 47 additions and 46 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue