diff --git a/source/ChanSort/MainForm.cs b/source/ChanSort/MainForm.cs index 14e28ee..4afb577 100644 --- a/source/ChanSort/MainForm.cs +++ b/source/ChanSort/MainForm.cs @@ -32,6 +32,7 @@ namespace ChanSort.Ui public partial class MainForm : XtraForm { public static string AppVersion { get; private set; } + public static string AppVersionFull { get; private set; } private const int MaxMruEntries = 10; private readonly List isoEncodings = new List(); @@ -63,6 +64,7 @@ namespace ChanSort.Ui var version = this.GetType().Assembly.GetName().Version; AppVersion = new DateTime(2000, 1, 1).AddDays(version.Build).ToString("yyyy-MM-dd"); + AppVersionFull = new DateTime(2000, 1, 1).AddDays(version.Build).AddSeconds(version.Revision * 2).ToString("yyyy-MM-dd_HHmm"); // remember which columns should be visible by default foreach (GridColumn col in this.gviewLeft.Columns) diff --git a/source/ChanSort/UpdateCheck.cs b/source/ChanSort/UpdateCheck.cs index b28a558..381b190 100644 --- a/source/ChanSort/UpdateCheck.cs +++ b/source/ChanSort/UpdateCheck.cs @@ -22,7 +22,7 @@ namespace ChanSort.Ui try { var newVersion = this.GetLatestVersion(); - if (newVersion.CompareTo(MainForm.AppVersion.TrimStart('v')) > 0) + if (newVersion.CompareTo(MainForm.AppVersionFull.TrimStart('v')) > 0) this.NotifyAboutNewVersion(newVersion); } catch { } diff --git a/source/changelog.md b/source/changelog.md index fd5c45e..e679a57 100644 --- a/source/changelog.md +++ b/source/changelog.md @@ -1,6 +1,9 @@ ChanSort Change Log =================== +2020-12-29 +- update check could not distinguish between 2 program versions from the same day (kept showing "an update is available") + 2020-12-26_2 - Panasonic: channel name editing is now supported when all channels implicitly use valid utf-8 encoding