Skip to content

Commit 3ff3a4d

Browse files
committed
Code Quality: Reverted changes to CheckAppUpdate
1 parent 5ee54d3 commit 3ff3a4d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/Files.App/Helpers/Application/AppLifecycleHelper.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ await Task.WhenAll(
125125
FileTagsHelper.UpdateTagsDb();
126126

127127
// Release notes tab doesn't open unless this is awaited
128+
// Auto update doesn't work unless this is awaited
128129
await CheckAppUpdate();
129130

130131
static Task OptionalTaskAsync(Task task, bool condition)
@@ -157,14 +158,9 @@ public static async Task CheckAppUpdate()
157158
ViewedReleaseNotes = true;
158159
}
159160

160-
_ = Task.Run(async () =>
161-
{
162-
await Task.WhenAll(
163-
updateService.CheckForUpdatesAsync(),
164-
updateService.DownloadMandatoryUpdatesAsync(),
165-
updateService.CheckAndUpdateFilesLauncherAsync()
166-
);
167-
});
161+
await updateService.CheckForUpdatesAsync();
162+
await updateService.DownloadMandatoryUpdatesAsync();
163+
await updateService.CheckAndUpdateFilesLauncherAsync();
168164
}
169165

170166
/// <summary>

0 commit comments

Comments
 (0)