File tree 2 files changed +4
-12
lines changed
packages/compass/src/main
2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ describe('CompassMenu', function () {
163
163
AutoUpdateManagerState . UpdateDismissed ,
164
164
AutoUpdateManagerState . DownloadingError ,
165
165
AutoUpdateManagerState . Restarting ,
166
+ AutoUpdateManagerState . OutdatedOperatingSystem ,
166
167
] ;
167
168
for ( const state of idleStates ) {
168
169
App . emit ( 'auto-updater:new-state' , state ) ;
@@ -233,6 +234,7 @@ describe('CompassMenu', function () {
233
234
AutoUpdateManagerState . UpdateDismissed ,
234
235
AutoUpdateManagerState . DownloadingError ,
235
236
AutoUpdateManagerState . Restarting ,
237
+ AutoUpdateManagerState . OutdatedOperatingSystem ,
236
238
] ;
237
239
for ( const state of idleStates ) {
238
240
App . emit ( 'auto-updater:new-state' , state ) ;
Original file line number Diff line number Diff line change @@ -516,24 +516,14 @@ class CompassMenu {
516
516
app . on ( 'auto-updater:new-state' , ( state ) => {
517
517
const updateManagerState = ( ( ) : UpdateManagerState => {
518
518
switch ( state ) {
519
- case AutoUpdateManagerState . Initial :
520
- case AutoUpdateManagerState . Disabled :
521
- case AutoUpdateManagerState . UserPromptedManualCheck :
522
- case AutoUpdateManagerState . CheckingForUpdatesForManualCheck :
523
- case AutoUpdateManagerState . CheckingForUpdatesForAutomaticCheck :
524
- case AutoUpdateManagerState . NoUpdateAvailable :
525
- case AutoUpdateManagerState . UpdateAvailable :
526
- case AutoUpdateManagerState . UpdateDismissed :
527
- case AutoUpdateManagerState . DownloadingError :
528
- case AutoUpdateManagerState . PromptToUpdateExternally :
529
- case AutoUpdateManagerState . Restarting :
530
- return 'idle' ;
531
519
case AutoUpdateManagerState . ManualDownload :
532
520
case AutoUpdateManagerState . DownloadingUpdate :
533
521
return 'installing updates' ;
534
522
case AutoUpdateManagerState . RestartDismissed :
535
523
case AutoUpdateManagerState . PromptForRestart :
536
524
return 'ready to restart' ;
525
+ default :
526
+ return 'idle' ;
537
527
}
538
528
} ) ( ) ;
539
529
this . updateMenu ( { updateManagerState } ) ;
You can’t perform that action at this time.
0 commit comments