feat: Do not allow desktop to quit without closing sessions

This commit is contained in:
Susmitha Girumala committed 2021-05-12 14:27:01 -04:00
1 parent 4b587d35fa
commit dcc77153bf
1 file changed
+2 -2
+2 -2
View File
@@ -191,7 +191,7 @@ app.on('before-quit', (event) => {
if (sessionManager.hasActiveSessions) {
const dialogOpts = {
type: 'question',
buttons: ['Close & Quit', 'Ignore & Quit', 'Cancel'],
buttons: ['Close', 'Cancel'],
detail: 'Close sessions before quitting?',
};
@@ -200,7 +200,7 @@ app.on('before-quit', (event) => {
case 0:
sessionManager.stopAll();
break;
case 2:
case 1:
event.preventDefault();
break;
}