Skip to content

Commit cff4434

Browse files
committed
Code Quality: Fixed release notes
1 parent e9bdd7e commit cff4434

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

+5-4
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,14 @@ public static async Task CheckAppUpdate()
134134
{
135135
var updateService = Ioc.Default.GetRequiredService<IUpdateService>();
136136

137-
await updateService.CheckForUpdatesAsync();
138-
await updateService.DownloadMandatoryUpdatesAsync();
139-
await updateService.CheckAndUpdateFilesLauncherAsync();
140137
await updateService.CheckForReleaseNotesAsync();
141-
138+
// Check for release notes before checking for new updates
142139
if (AppEnvironment != AppEnvironment.Dev && IsAppUpdated && updateService.AreReleaseNotesAvailable)
143140
await Ioc.Default.GetRequiredService<ICommandManager>().OpenReleaseNotes.ExecuteAsync();
141+
142+
await updateService.CheckForUpdatesAsync();
143+
await updateService.DownloadMandatoryUpdatesAsync();
144+
await updateService.CheckAndUpdateFilesLauncherAsync();
144145
}
145146

146147
/// <summary>

0 commit comments

Comments
 (0)