@@ -359,7 +359,7 @@ const STATE_UPDATE: Record<
359
359
this . maybeInterrupt ( ) ;
360
360
361
361
if ( isDownloadForManualCheck ) {
362
- ipcMain ?. broadcastFocused ( 'autoupdate:update-download-in-progress' ) ;
362
+ ipcMain ?. broadcast ( 'autoupdate:update-download-in-progress' ) ;
363
363
}
364
364
autoUpdater . checkForUpdates ( ) ;
365
365
} ,
@@ -379,7 +379,7 @@ const STATE_UPDATE: Record<
379
379
380
380
this . maybeInterrupt ( ) ;
381
381
382
- ipcMain ?. broadcastFocused ( 'autoupdate:update-download-success' ) ;
382
+ ipcMain ?. broadcast ( 'autoupdate:update-download-success' ) ;
383
383
} ,
384
384
} ,
385
385
[ AutoUpdateManagerState . ManualDownload ] : {
@@ -431,7 +431,7 @@ const STATE_UPDATE: Record<
431
431
[ AutoUpdateManagerState . DownloadingError ] : {
432
432
nextStates : [ AutoUpdateManagerState . UserPromptedManualCheck ] ,
433
433
enter : ( _updateManager , _fromState , error ) => {
434
- ipcMain ?. broadcastFocused ( 'autoupdate:update-download-failed' ) ;
434
+ ipcMain ?. broadcast ( 'autoupdate:update-download-failed' ) ;
435
435
log . error (
436
436
mongoLogId ( 1001000129 ) ,
437
437
'AutoUpdateManager' ,
@@ -663,12 +663,12 @@ class CompassAutoUpdateManager {
663
663
this . setState ( AutoUpdateManagerState . UserPromptedManualCheck ) ;
664
664
} ) ;
665
665
666
- ipcMain ?. handle (
666
+ ipcMain ?. on (
667
667
'autoupdate:update-download-restart-confirmed' ,
668
668
this . handleIpcUpdateDownloadRestartConfirmed . bind ( this )
669
669
) ;
670
670
671
- ipcMain ?. handle (
671
+ ipcMain ?. on (
672
672
'autoupdate:update-download-restart-dismissed' ,
673
673
this . handleIpcUpdateDownloadRestartDismissed . bind ( this )
674
674
) ;
0 commit comments