Skip to content

Commit

Permalink
Version 0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnanC committed Aug 30, 2016
1 parent 45370c4 commit 904b7ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions HDT.Plugins.MetaDetector/MetaDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ internal bool checkNewVersion()
string currentVersion = _appConfig.currentVersion;
DateTime lastCheck = _appConfig.lastCheck;

if ((DateTime.Now - lastCheck).TotalDays > 3)
if ((DateTime.Now - lastCheck).TotalDays > 2)
{
MetaLog.Info("Checking for new version of Meta File", "checkNewVersion");
WebClient client = new WebClient();
Expand All @@ -685,15 +685,14 @@ internal bool checkNewVersion()
if (versionNumber != currentVersion)
{
DownloadMetaFile();

_appConfig.currentVersion = versionNumber;
_appConfig.lastCheck = DateTime.Now;
_appConfig.Save();
return true;
}
}
}

_appConfig.currentVersion = versionNumber;
_appConfig.lastCheck = DateTime.Now;
_appConfig.Save();
return true;
}
return false;
}
catch (Exception ex)
Expand Down Expand Up @@ -736,6 +735,8 @@ internal void LoadMetaDecks()

private void checkClassDecks()
{
MetaLog.Info("Check Class Deck Files", "checkClassDecks");

if (checkNewVersion())
return;

Expand Down Expand Up @@ -852,7 +853,7 @@ internal void DownloadMetaFile()
{
try
{
MetaLog.Info("Downloing Meta File");
MetaLog.Info("Downloading Meta File");
using (WebClient wc = new WebClient())
{
_downloadingMetaFile = true;
Expand Down
2 changes: 1 addition & 1 deletion HDT.Plugins.MetaDetector/MetaDetectorPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void OnUpdate()

public Version Version
{
get { return new Version(0, 0, 8); }
get { return new Version(0, 0, 9); }
}

private async void CheckForUpdate()
Expand Down

0 comments on commit 904b7ee

Please sign in to comment.