We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f4f1ac + 2b64034 commit bbc30efCopy full SHA for bbc30ef
app/electron/main.js
@@ -167,17 +167,23 @@ autoUpdater.on('update-downloaded', () => {
167
});
168
169
app.on('ready', createWindow);
170
-app.on('window-all-closed', function () {
+
171
+app.on('quit', function () {
172
if (serverProcess) {
173
serverProcess.stdin.pause();
174
serverProcess.kill();
- }
175
- if (process.platform !== 'darwin') {
176
- app.quit();
+ serverProcess = null;
177
}
178
179
app.on('activate', function () {
180
if (mainWindow === null) {
181
createWindow();
182
183
184
185
+app.once('window-all-closed', app.quit);
186
187
+app.once('before-quit', () => {
188
+ mainWindow.removeAllListeners('close');
189
+});
0 commit comments