This commit is contained in:
SPRINX0\prochazka 2024-09-09 16:33:47 +02:00
parent a78c375b90
commit 628d8eb5dc

View File

@ -471,7 +471,9 @@ autoUpdater.on('checking-for-update', () => {
autoUpdater.on('update-available', info => {
console.log('Update available', info);
changeAppUpdateStatus(`New version ${info.version} available`);
mainWindow.webContents.send('update-available', info.version);
if (!autoUpdater.autoDownload) {
mainWindow.webContents.send('update-available', info.version);
}
});
autoUpdater.on('update-not-available', info => {