@@ -94,26 +94,26 @@ export function settingsUpdateView(status: Partial<SettingsUpdateStatus> | null
9494
9595 switch ( status . state ) {
9696 case 'unavailable' :
97- return view ( why || `${ app } cannot update itself.` , null )
97+ return view ( why || `${ app } cannot update itself.` , null )
9898 case 'idle' :
99- return view ( 'Check for a newer version.' , 'check' )
99+ return view ( 'Check for a newer version.' , 'check' )
100100 case 'checking' :
101- return view ( 'Checking for updates...' , 'check' , { busy : true } )
101+ return view ( 'Checking for updates...' , 'check' , { busy : true } )
102102 case 'current' :
103- return view ( `${ app } is up to date.` , 'check' )
103+ return view ( `${ app } is up to date.` , 'check' )
104104 case 'available' :
105- return canInstall
106- ? view ( `${ update } is available.` , 'install' )
107- : view ( `${ update } is available. ${ why || `${ app } cannot update itself.` } ` , 'check' )
105+ return canInstall
106+ ? view ( `${ update } is available.` , 'install' )
107+ : view ( `${ update } is available. ${ why || `${ app } cannot update itself.` } ` , 'check' )
108108 case 'downloading' :
109- return view ( `Downloading ${ next ? `version ${ next } ` : 'the update' } ...` , 'install' , { busy : true , progress : percent ( status . progress ) } )
109+ return view ( `Downloading ${ next ? `version ${ next } ` : 'the update' } ...` , 'install' , { busy : true , progress : percent ( status . progress ) } )
110110 case 'installing' :
111- return view ( `Installing ${ next ? `version ${ next } ` : 'the update' } ...` , 'install' , { busy : true } )
111+ return view ( `Installing ${ next ? `version ${ next } ` : 'the update' } ...` , 'install' , { busy : true } )
112112 case 'installed' :
113- return view ( `${ update } is installed. Restart ${ app } to finish updating.` , 'relaunch' )
113+ return view ( `${ update } is installed. Restart ${ app } to finish updating.` , 'relaunch' )
114114 case 'error' :
115- return view ( String ( status . error || '' ) . trim ( ) || 'The update could not be completed.' , 'check' , { failed : true } )
115+ return view ( String ( status . error || '' ) . trim ( ) || 'The update could not be completed.' , 'check' , { failed : true } )
116116 default :
117- return view ( '' , null )
117+ return view ( '' , null )
118118 }
119119}
0 commit comments