Avoid calling tray.destroy() when quitting

This commit is contained in:
Fedor Indutny 2022-01-24 16:18:53 -08:00 committed by GitHub
parent dff941adc7
commit 3aa488c3d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 3 deletions

View file

@ -1729,6 +1729,7 @@ app.on('before-quit', () => {
shouldQuit: windowState.shouldQuit(),
});
systemTrayService?.markShouldQuit();
windowState.markShouldQuit();
if (mainWindow) {