diff --git a/Bloxstrap/Installer.cs b/Bloxstrap/Installer.cs index 3547aebce..93f40c1e5 100644 --- a/Bloxstrap/Installer.cs +++ b/Bloxstrap/Installer.cs @@ -5,6 +5,12 @@ namespace Bloxstrap { internal class Installer { + /// + /// Should this version automatically open the release notes page? + /// Recommended for major updates only. + /// + private const bool OpenReleaseNotes = false; + private static string DesktopShortcut => Path.Combine(Paths.Desktop, $"{App.ProjectName}.lnk"); private static string StartMenuShortcut => Path.Combine(Paths.WindowsStartMenu, $"{App.ProjectName}.lnk"); @@ -600,7 +606,10 @@ public static void HandleUpgrade() if (isAutoUpgrade) { - Utilities.ShellExecute($"https://github.com/{App.ProjectRepository}/wiki/Release-notes-for-Bloxstrap-v{currentVer}"); +#pragma warning disable CS0162 // Unreachable code detected + if (OpenReleaseNotes) + Utilities.ShellExecute($"https://github.com/{App.ProjectRepository}/wiki/Release-notes-for-Bloxstrap-v{currentVer}"); +#pragma warning restore CS0162 // Unreachable code detected } else {