Skip to content

Commit

Permalink
The inevitable tweak once actually checking in prod.
Browse files Browse the repository at this point in the history
  • Loading branch information
software-2 committed May 24, 2023
1 parent ed5acb1 commit 08a7fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LightroomSync/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ private async void CheckForUpdates(bool silently)
{
try
{
version = await client.GetStringAsync("https://github.com/software-2/LightroomSync/raw/master/latestversion.txt");
version = await client.GetStringAsync("https://github.com/software-2/LightroomSync/raw/master/latestVersion.txt");
}
catch (Exception ex)
{
Expand All @@ -622,7 +622,7 @@ private async void CheckForUpdates(bool silently)

var parsed = Version.Parse(version);

if (parsed.CompareTo(currentVersion) != 0)
if (parsed.CompareTo(Version.Parse(currentVersion)) != 0)
{
var dialog = "There is a new version! Want to go get it?" + Environment.NewLine + Environment.NewLine + "New Version: " + parsed.ToString() + Environment.NewLine + "Your Version: " + currentVersion.ToString();
var result = MessageBox.Show(dialog, "New Version!", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
Expand Down

0 comments on commit 08a7fd9

Please sign in to comment.