Skip to content

Commit c8294cd

Browse files
committed
Update AppLifecycleHelper.cs
1 parent 563490a commit c8294cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Files Community
22
// Licensed under the MIT License.
33

4-
using CommunityToolkit.WinUI;
54
using Files.App.Helpers.Application;
65
using Files.App.Services.SizeProvider;
76
using Files.App.Utils.Logger;
@@ -13,7 +12,6 @@
1312
using Sentry;
1413
using Sentry.Protocol;
1514
using System.IO;
16-
using System.Security;
1715
using System.Text;
1816
using Windows.ApplicationModel;
1917
using Windows.Storage;
@@ -141,7 +139,7 @@ public static async Task CheckAppUpdate()
141139
await updateService.CheckAndUpdateFilesLauncherAsync();
142140
await updateService.CheckForReleaseNotesAsync();
143141

144-
if (IsAppUpdated)
142+
if (IsAppUpdated && updateService.AreReleaseNotesAvailable)
145143
await Ioc.Default.GetRequiredService<ICommandManager>().OpenReleaseNotes.ExecuteAsync();
146144
}
147145

0 commit comments

Comments
 (0)