Skip to content

Commit

Permalink
Changed the README example of CheckForUpdateEvent to compensate for c…
Browse files Browse the repository at this point in the history
…hanges in the UpdateInfoEventArgs class.
  • Loading branch information
ravibpatel committed Feb 6, 2020
1 parent 0854ee3 commit a855024
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AutoUpdater.NET/DownloadUpdateDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private void DownloadUpdateDialogLoad(object sender, EventArgs e)

private void OnDownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
if (_startedAt == default(DateTime))
if (_startedAt == default)
{
_startedAt = DateTime.Now;
}
Expand Down
2 changes: 1 addition & 1 deletion AutoUpdaterTest/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private void AutoUpdaterOnCheckForUpdateEvent(UpdateInfoEventArgs args)
if (args.IsUpdateAvailable)
{
DialogResult dialogResult;
if (args.Mandatory)
if (args.Mandatory.Value)
{
dialogResult =
MessageBox.Show(
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private void AutoUpdaterOnCheckForUpdateEvent(UpdateInfoEventArgs args)
if (args.IsUpdateAvailable)
{
DialogResult dialogResult;
if (args.Mandatory)
if (args.Mandatory.Value)
{
dialogResult =
MessageBox.Show(
Expand Down

0 comments on commit a855024

Please sign in to comment.