New state for Update Dialog
This commit is contained in:
@@ -260,9 +260,15 @@ export abstract class Updater {
|
||||
const mainWindow = this.getMainWindow();
|
||||
if (mainWindow) {
|
||||
logger.info('downloadAndInstall: showing update dialog...');
|
||||
mainWindow.webContents.send('show-update-dialog', DialogType.Update, {
|
||||
version: this.version,
|
||||
});
|
||||
mainWindow.webContents.send(
|
||||
'show-update-dialog',
|
||||
mode === DownloadMode.Automatic
|
||||
? DialogType.AutoUpdate
|
||||
: DialogType.DownloadedUpdate,
|
||||
{
|
||||
version: this.version,
|
||||
}
|
||||
);
|
||||
} else {
|
||||
logger.warn(
|
||||
'downloadAndInstall: no mainWindow, cannot show update dialog'
|
||||
|
Reference in New Issue
Block a user