Skip to content

Commit

Permalink
fixed invoking URL dead locks app
Browse files Browse the repository at this point in the history
  • Loading branch information
zezba9000 committed Nov 23, 2017
1 parent c41a535 commit 1241c13
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion GitCommander/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

public static class VersionInfo
{
public const string version = "1.0.2";
public const string version = "1.0.3";

#if DEBUG
public const string versionType = version + "d";
Expand Down
14 changes: 5 additions & 9 deletions GitItGUI.Core/AppManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,18 +397,14 @@ private static bool IsValidVersion(string currentVersion, string requiredVersion

private static void DownloadGit()
{
using (var process = Process.Start("https://git-scm.com/downloads"))
{
process.WaitForExit();
}
var process = Process.Start("https://git-scm.com/downloads");
process.Dispose();
}

private static void DownloadGitLFS()
{
using (var process = Process.Start("https://git-lfs.github.com/"))
{
process.WaitForExit();
}
var process = Process.Start("https://git-lfs.github.com/");
process.Dispose();
}

private static void Client_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
Expand Down Expand Up @@ -445,7 +441,7 @@ private static void Client_DownloadStringCompleted(object sender, DownloadString
canCheckAppVersion = false;
if (!IsValidVersion(VersionInfo.version, xmlReader.ReadInnerXml()))
{
DebugLog.LogError("Your 'Git-It-GUI' version is out of date.");
DebugLog.LogWarning("Your 'Git-It-GUI' version is out of date.");
if (checkForUpdatesCallback != null) checkForUpdatesCallback(UpdateCheckResult.AppVersionOutOfDate);
}
}
Expand Down
6 changes: 2 additions & 4 deletions GitItGUI.UI/Screens/StartScreen.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,8 @@ private void settingsButton_Click(object sender, RoutedEventArgs e)

private void UpdateImage_MouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
using (var process = Process.Start("https://github.com/reignstudios/Git-It-GUI/releases"))
{
process.WaitForExit();
}
var process = Process.Start("https://github.com/reignstudios/Git-It-GUI/releases");
process.Dispose();
}
}
}
2 changes: 1 addition & 1 deletion GitItGUI.UI/VersionInfo.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<VersionInfo>
<AppVersion>1.0.2</AppVersion>
<AppVersion>1.0.3</AppVersion>
</VersionInfo>
4 changes: 2 additions & 2 deletions Installer/Git-It-GUI_Installer.aip
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<ROW Property="ARPURLUPDATEINFO" Value="https://github.com/reignstudios/Git-It-GUI/releases"/>
<ROW Property="CTRLS" Value="2"/>
<ROW Property="Manufacturer" Value="Reign-Studios"/>
<ROW Property="ProductCode" Value="1033:{89F43A32-6EB1-47F7-B70F-973722337156} " Type="16"/>
<ROW Property="ProductCode" Value="1033:{48C9618C-B4B4-4480-A47B-5D29516DB5D9} " Type="16"/>
<ROW Property="ProductLanguage" Value="1033"/>
<ROW Property="ProductName" Value="Git-It-GUI"/>
<ROW Property="ProductVersion" Value="1.0.2" Type="32"/>
<ROW Property="ProductVersion" Value="1.0.3" Type="32"/>
<ROW Property="RUNAPPLICATION" Value="1" Type="4"/>
<ROW Property="SecureCustomProperties" Value="OLDPRODUCTS;AI_NEWERPRODUCTFOUND"/>
<ROW Property="UpgradeCode" Value="{FD4A5E78-F668-42CE-90BC-D1DDAA792189}"/>
Expand Down

0 comments on commit 1241c13

Please sign in to comment.