Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-06-05 18:41:29 +01:00
parent 799ccc6197
commit 861c90c3d8

View File

@ -83,7 +83,7 @@ autoUpdater.on('update-available', function() {
// is if the user used the Manual Update check and there is no update newer than the one we // is if the user used the Manual Update check and there is no update newer than the one we
// have downloaded, so show it to them as the latest again. // have downloaded, so show it to them as the latest again.
ipcChannelSendUpdateStatus(true); ipcChannelSendUpdateStatus(true);
mainWindow.webContents.send('update-downloaded', latestUpdateDownloaded); global.mainWindow.webContents.send('update-downloaded', latestUpdateDownloaded);
} else { } else {
ipcChannelSendUpdateStatus(false); ipcChannelSendUpdateStatus(false);
} }
@ -95,5 +95,5 @@ autoUpdater.on('update-downloaded', (ev, releaseNotes, releaseName, releaseDate,
if (!global.mainWindow) return; if (!global.mainWindow) return;
// forward to renderer // forward to renderer
latestUpdateDownloaded = { releaseNotes, releaseName, releaseDate, updateURL }; latestUpdateDownloaded = { releaseNotes, releaseName, releaseDate, updateURL };
mainWindow.webContents.send('update-downloaded', latestUpdateDownloaded); global.mainWindow.webContents.send('update-downloaded', latestUpdateDownloaded);
}); });