Skip to content

Commit

Permalink
Fixed infiite download loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Serraniel committed Oct 12, 2017
1 parent f617a36 commit 2d9d857
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Discord Media Loader.Application/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.99.150.0")]
[assembly: AssemblyFileVersion("0.99.150.0")]
[assembly: AssemblyVersion("0.99.151.0")]
[assembly: AssemblyFileVersion("0.99.151.0")]
6 changes: 3 additions & 3 deletions Discord Media Loader/FrmSplash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ private async void FrmSplash_Shown(object sender, EventArgs e)
UseWaitCursor = true;
try
{
/*var releaseVersion = await VersionHelper.GetReleaseVersion();
if (releaseVersion > VersionHelper.CurrentVersion)
var releaseVersion = await VersionHelper.GetReleaseVersion();
if (releaseVersion > VersionHelper.AppVersion)
{
var tmpFile = Path.GetTempFileName();
var downloadManager = new FrmDownload(tmpFile, await VersionHelper.DownloadVersion(releaseVersion));
Expand All @@ -52,7 +52,7 @@ private async void FrmSplash_Shown(object sender, EventArgs e)
}

File.Delete(tmpFile);
}*/
}
}
finally
{
Expand Down
2 changes: 2 additions & 0 deletions Discord Media Loader/Helper/VersionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using DML.Application.Classes;
using Octokit;

namespace Discord_Media_Loader.Helper
{
internal class VersionHelper
{
internal static Version CurrentVersion => Assembly.GetExecutingAssembly().GetName().Version;
internal static Version AppVersion => typeof(Core).Assembly.GetName().Version;

internal static async Task<Version> GetReleaseVersion()
{
Expand Down
4 changes: 2 additions & 2 deletions Discord Media Loader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.99.150.0")]
[assembly: AssemblyFileVersion("0.99.150.0")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

0 comments on commit 2d9d857

Please sign in to comment.