File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
src/Files.App/Helpers/Application Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -118,13 +118,15 @@ await Task.WhenAll(
118
118
OptionalTaskAsync ( App . FileTagsManager . UpdateFileTagsAsync ( ) , generalSettingsService . ShowFileTagsSection ) ,
119
119
jumpListService . InitializeAsync ( ) ,
120
120
addItemService . InitializeAsync ( ) ,
121
- ContextMenu . WarmUpQueryContextMenuAsync ( ) ,
122
- CheckAppUpdate ( )
121
+ ContextMenu . WarmUpQueryContextMenuAsync ( )
123
122
) ;
124
123
} ) ;
125
124
126
125
FileTagsHelper . UpdateTagsDb ( ) ;
127
126
127
+ // Release notes tab doesn't open unless this is awaited
128
+ await CheckAppUpdate ( ) ;
129
+
128
130
static Task OptionalTaskAsync ( Task task , bool condition )
129
131
{
130
132
if ( condition )
@@ -155,9 +157,14 @@ public static async Task CheckAppUpdate()
155
157
ViewedReleaseNotes = true ;
156
158
}
157
159
158
- await updateService . CheckForUpdatesAsync ( ) ;
159
- await updateService . DownloadMandatoryUpdatesAsync ( ) ;
160
- await updateService . CheckAndUpdateFilesLauncherAsync ( ) ;
160
+ _ = Task . Run ( async ( ) =>
161
+ {
162
+ await Task . WhenAll (
163
+ updateService . CheckForUpdatesAsync ( ) ,
164
+ updateService . DownloadMandatoryUpdatesAsync ( ) ,
165
+ updateService . CheckAndUpdateFilesLauncherAsync ( )
166
+ ) ;
167
+ } ) ;
161
168
}
162
169
163
170
/// <summary>
You can’t perform that action at this time.
0 commit comments