File tree 2 files changed +9
-7
lines changed
Files.App/Helpers/Application
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
- <?xml version =" 1.0" encoding =" utf-8" ?>
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- Copyright (c) Files Community. Licensed under the MIT License. -->
3
3
<Package
4
4
xmlns =" http://schemas.microsoft.com/appx/manifest/foundation/windows10"
16
16
<Identity
17
17
Name =" FilesDev"
18
18
Publisher =" CN=Files"
19
- Version =" 3.9.4 .0" />
19
+ Version =" 3.9.6 .0" />
20
20
21
21
<Properties >
22
22
<DisplayName >Files - Dev</DisplayName >
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ static AppLifecycleHelper()
54
54
}
55
55
else
56
56
{
57
- IsAppUpdated = version . ToString ( ) != Package . Current . Id . Version . ToString ( ) ;
57
+ IsAppUpdated = version . ToString ( ) != AppVersion . ToString ( ) ;
58
58
}
59
59
TotalLaunchCount = launchCount is long l ? l + 1 : 1 ;
60
- infoKey . SetValue ( "LastLaunchVersion" , Package . Current . Id . Version . ToString ( ) ! ) ;
60
+ infoKey . SetValue ( "LastLaunchVersion" , AppVersion . ToString ( ) ) ;
61
61
infoKey . SetValue ( "TotalLaunchCount" , TotalLaunchCount ) ;
62
62
}
63
63
@@ -134,13 +134,15 @@ public static async Task CheckAppUpdate()
134
134
{
135
135
var updateService = Ioc . Default . GetRequiredService < IUpdateService > ( ) ;
136
136
137
- await updateService . CheckForUpdatesAsync ( ) ;
138
- await updateService . DownloadMandatoryUpdatesAsync ( ) ;
139
- await updateService . CheckAndUpdateFilesLauncherAsync ( ) ;
140
137
await updateService . CheckForReleaseNotesAsync ( ) ;
141
138
139
+ // Check for release notes before checking for new updates
142
140
if ( AppEnvironment != AppEnvironment . Dev && IsAppUpdated && updateService . AreReleaseNotesAvailable )
143
141
await Ioc . Default . GetRequiredService < ICommandManager > ( ) . OpenReleaseNotes . ExecuteAsync ( ) ;
142
+
143
+ await updateService . CheckForUpdatesAsync ( ) ;
144
+ await updateService . DownloadMandatoryUpdatesAsync ( ) ;
145
+ await updateService . CheckAndUpdateFilesLauncherAsync ( ) ;
144
146
}
145
147
146
148
/// <summary>
You can’t perform that action at this time.
0 commit comments