We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2e3c28 commit 2ee3186Copy full SHA for 2ee3186
main/index.js
@@ -215,6 +215,13 @@ app.on('ready', function appReady () {
215
setTimeout(() => {
216
autoUpdater.checkForUpdatesAndNotify()
217
}, 500)
218
+
219
+ if (process.platform !== 'darwin') {
220
+ // since window-all-closed doesn't fire with our hidden audio process
221
+ player.win.once('closed', () => {
222
+ app.quit()
223
+ })
224
+ }
225
})
226
227
autoUpdater.on('error', (err) => {
@@ -249,10 +256,6 @@ autoUpdater.on('update-downloaded', (info) => {
249
256
console.log(info)
250
257
251
258
252
-app.on('window-all-closed', function allWindowsClosed () {
253
- if (process.platform !== 'darwin') app.quit()
254
-})
255
-
259
app.on('activate', function activate () {
260
if (player.win === null) {
261
al.recall()
0 commit comments