mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-10 15:25:42 -07:00
toggle for opening release notes
This commit is contained in:
parent
fea5a08643
commit
9224ee1408
@ -5,6 +5,12 @@ namespace Bloxstrap
|
||||
{
|
||||
internal class Installer
|
||||
{
|
||||
/// <summary>
|
||||
/// Should this version automatically open the release notes page?
|
||||
/// Recommended for major updates only.
|
||||
/// </summary>
|
||||
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 @@ namespace Bloxstrap
|
||||
|
||||
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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user