File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -61,19 +61,7 @@ public async Task InstallOffline(string path)
6161 await Unpacker . Unpack ( path , dest ) ;
6262 BinaryMetadataHelper . WriteMetadata ( dest , source , version ) ;
6363
64- _currentUpdateStepSubject . OnNext ( UpdateStep . Other ) ;
65- _updateStepDescriptionSubject . OnNext ( "Updating settings" ) ;
66- _appSettingsUpdater . UpdateAll ( ) ;
67- _updateStepDescriptionSubject . OnNext ( "Updating certificates" ) ;
68- await _certificateManager . Update ( ) ;
69- _updateStepDescriptionSubject . OnNext ( "Ensuring database is up to date" ) ;
70- await _databaseManager . Refresh ( ) ;
71- if ( _databaseManager . DatabaseStatus != DatabaseStatus . UpToDate )
72- {
73- await _databaseManager . RunMigrations ( ) ;
74- }
75- _currentUpdateStepSubject . OnNext ( UpdateStep . Idle ) ;
76- _updateStepDescriptionSubject . OnNext ( "" ) ;
64+ await ApplyLocalSettings ( ) ;
7765 }
7866
7967 public async Task Update ( SemanticVersion version )
@@ -105,6 +93,11 @@ public async Task Update(SemanticVersion version)
10593 throw ;
10694 }
10795
96+ await ApplyLocalSettings ( ) ;
97+ }
98+
99+ public async Task ApplyLocalSettings ( )
100+ {
108101 _currentUpdateStepSubject . OnNext ( UpdateStep . Other ) ;
109102 _updateStepDescriptionSubject . OnNext ( "Updating settings" ) ;
110103 _appSettingsUpdater . UpdateAll ( ) ;
You can’t perform that action at this time.
0 commit comments