Skip to content

Commit

Permalink
test if deletion of java-process gets triggered on update this time
Browse files Browse the repository at this point in the history
  • Loading branch information
AquaJo committed Aug 15, 2024
1 parent 83ffc44 commit c778fd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ if (!gotTheLock) {
mainWindow.webContents.send('log', 'Update verfügbar!');
});

autoUpdater.on('update-downloaded', () => {
autoUpdater.on('update-downloaded', async () => {
console.log('Update heruntergeladen!');
mainWindow.webContents.send('log', 'Update heruntergeladen!');
mainWindow.webContents.send('log', 'Update heruntergeladen!'); // ()
await mainWindow.close();
autoUpdater.quitAndInstall();
});

Expand Down

0 comments on commit c778fd3

Please sign in to comment.