mirror of https://bitbucket.org/anguist/ntpa
Always insert the current version
This commit is contained in:
parent
cd2135aca1
commit
f55fa07a23
|
@ -130,6 +130,12 @@ public bool CheckLatestVersion()
|
|||
int databaseVersion = controller.FindCurrentVersion();
|
||||
var latest = changes.OrderBy(c => c.VersionNumber).Last();
|
||||
|
||||
if (databaseVersion == -1)
|
||||
{
|
||||
controller.SetCurrentVersion(latest);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (databaseVersion == latest.VersionNumber)
|
||||
return true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue