update check could not distinguish between 2 program versions from the same day (kept showing "an update is available")

This commit is contained in:
Horst Beham
2020-12-29 18:49:25 +01:00
parent eaa09181cf
commit dc1e6e7f9a
3 changed files with 6 additions and 1 deletions

View File

@@ -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<string> isoEncodings = new List<string>();
@@ -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)

View File

@@ -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 { }

View File

@@ -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