mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-02-05 05:59:03 +01:00
update check could not distinguish between 2 program versions from the same day (kept showing "an update is available")
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 { }
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user