Skip to content

Commit aa7d7fa

Browse files
committed
Build: v3.9.6
Code Quality: Fixed release notes
1 parent e9bdd7e commit aa7d7fa

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/Files.App (Package)/Package.appxmanifest

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<!-- Copyright (c) Files Community. Licensed under the MIT License. -->
33
<Package
44
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
@@ -16,7 +16,7 @@
1616
<Identity
1717
Name="FilesDev"
1818
Publisher="CN=Files"
19-
Version="3.9.4.0" />
19+
Version="3.9.6.0" />
2020

2121
<Properties>
2222
<DisplayName>Files - Dev</DisplayName>

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

+7-5
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ static AppLifecycleHelper()
5454
}
5555
else
5656
{
57-
IsAppUpdated = version.ToString() != Package.Current.Id.Version.ToString();
57+
IsAppUpdated = version.ToString() != AppVersion.ToString();
5858
}
5959
TotalLaunchCount = launchCount is long l ? l + 1 : 1;
60-
infoKey.SetValue("LastLaunchVersion", Package.Current.Id.Version.ToString()!);
60+
infoKey.SetValue("LastLaunchVersion", AppVersion.ToString());
6161
infoKey.SetValue("TotalLaunchCount", TotalLaunchCount);
6262
}
6363

@@ -134,13 +134,15 @@ 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();
141138

139+
// Check for release notes before checking for new updates
142140
if (AppEnvironment != AppEnvironment.Dev && IsAppUpdated && updateService.AreReleaseNotesAvailable)
143141
await Ioc.Default.GetRequiredService<ICommandManager>().OpenReleaseNotes.ExecuteAsync();
142+
143+
await updateService.CheckForUpdatesAsync();
144+
await updateService.DownloadMandatoryUpdatesAsync();
145+
await updateService.CheckAndUpdateFilesLauncherAsync();
144146
}
145147

146148
/// <summary>

0 commit comments

Comments
 (0)