Fix riot-desktop manual update check getting stuck on Downloading...

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-06-07 13:18:33 +01:00
parent 861c90c3d8
commit c2ecef12f2

View File

@ -82,7 +82,7 @@ autoUpdater.on('update-available', function() {
// the only time we will get `update-not-available` if `latestUpdateDownloaded` is already set // the only time we will get `update-not-available` if `latestUpdateDownloaded` is already set
// 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); if (!global.mainWindow) return;
global.mainWindow.webContents.send('update-downloaded', latestUpdateDownloaded); global.mainWindow.webContents.send('update-downloaded', latestUpdateDownloaded);
} else { } else {
ipcChannelSendUpdateStatus(false); ipcChannelSendUpdateStatus(false);