Skip to content

Commit

Permalink
Implemented ShowSkipButton static property in AutoUpdater to set the …
Browse files Browse the repository at this point in the history
…visibility of the skip button.
  • Loading branch information
Talagozis authored and ravibpatel committed Apr 24, 2017
1 parent 21ac92d commit f917321
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AutoUpdater.NET/AutoUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public static class AutoUpdater
/// </summary>
public static CultureInfo CurrentCulture;

/// <summary>
/// If this is true users can see the skip button.
/// </summary>
public static Boolean ShowSkipButton = true;

/// <summary>
/// If this is true users see dialog where they can set remind later interval otherwise it will take the interval from
/// RemindLaterAt and RemindLaterTimeSpan fields.
Expand Down
2 changes: 2 additions & 0 deletions AutoUpdater.NET/UpdateForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public sealed override string Text

private void UpdateFormLoad(object sender, EventArgs e)
{
buttonSkip.Visible = AutoUpdater.ShowSkipButton;

if (HideReleaseNotes == false)
{
webBrowser.Navigate(AutoUpdater.ChangeLogURL);
Expand Down

0 comments on commit f917321

Please sign in to comment.