File tree 1 file changed +12
-1
lines changed
src/Files.App/Helpers/Application
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ public static class AppLifecycleHelper
42
42
/// </summary>
43
43
public static long TotalLaunchCount { get ; }
44
44
45
+ /// <summary>
46
+ /// Gets the value that indicates if the release notes tab was automatically opened.
47
+ /// </summary>
48
+ private static bool ViewedReleaseNotes { get ; set ; } = false ;
49
+
45
50
static AppLifecycleHelper ( )
46
51
{
47
52
using var infoKey = Registry . CurrentUser . CreateSubKey ( AppInformationKey ) ;
@@ -137,8 +142,14 @@ public static async Task CheckAppUpdate()
137
142
await updateService . CheckForReleaseNotesAsync ( ) ;
138
143
139
144
// Check for release notes before checking for new updates
140
- if ( AppEnvironment != AppEnvironment . Dev && IsAppUpdated && updateService . AreReleaseNotesAvailable )
145
+ if ( AppEnvironment != AppEnvironment . Dev &&
146
+ IsAppUpdated &&
147
+ updateService . AreReleaseNotesAvailable &&
148
+ ! ViewedReleaseNotes )
149
+ {
141
150
await Ioc . Default . GetRequiredService < ICommandManager > ( ) . OpenReleaseNotes . ExecuteAsync ( ) ;
151
+ ViewedReleaseNotes = true ;
152
+ }
142
153
143
154
await updateService . CheckForUpdatesAsync ( ) ;
144
155
await updateService . DownloadMandatoryUpdatesAsync ( ) ;
You can’t perform that action at this time.
0 commit comments