Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xupefei committed Aug 9, 2015
1 parent e469f66 commit d57ec58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions LECommonLibrary/GlobalHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public static void SetLastUpdate(int date)
var doc = XDocument.Load(GlobalVersionPath);

doc.Descendants("LEVersion").First().Attribute("LastUpdate").Value = date.ToString().PadLeft(8, '0');

doc.Save(GlobalVersionPath);
}
catch
{
Expand Down
1 change: 0 additions & 1 deletion LEProc/LEVersion.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>

<LEVersion Version="2.0.0.2" LastUpdate="20150730" />
2 changes: 1 addition & 1 deletion LEUpdater/ApplicationUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static void ProcessUpdate(XmlDocument xmlContent, NotifyIcon notifyIcon)
}

/// <summary>
/// If ver2 is bigger than ver1, return true.
/// If newVer is bigger than oldVer, return true.
/// </summary>
/// <param name="oldVer"></param>
/// <param name="newVer"></param>
Expand Down
2 changes: 1 addition & 1 deletion LEUpdater/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private static void Main(string[] args)
// Check new version every week.
if (!byForce && Int32.Parse(DateTime.Now.ToString("yyyyMMdd")) - GlobalHelper.GetLastUpdate() < 7)
{
return;
Environment.Exit(0);
}

if (!SystemHelper.CheckPermission(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)))
Expand Down

0 comments on commit d57ec58

Please sign in to comment.