Skip to content

Commit

Permalink
Finish task and publish 2.6.612.0 version
Browse files Browse the repository at this point in the history
Finish task and publish 2.6.612.0 version
  • Loading branch information
Gaoyifei1011 committed Jun 12, 2024
1 parent 2460fb0 commit 40c9db1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions WindowsTools/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[assembly: AssemblyCompany("高怡飞")]
[assembly: AssemblyCopyright("Copyright ©2024 高怡飞, All Rights Reserved.")]
[assembly: AssemblyDescription("Windows 工具箱")]
[assembly: AssemblyFileVersion("2.5.602.0")]
[assembly: AssemblyInformationalVersion("2.5.602.0")]
[assembly: AssemblyFileVersion("2.6.612.0")]
[assembly: AssemblyInformationalVersion("2.6.612.0")]
[assembly: AssemblyProduct("Windows 工具箱")]
[assembly: AssemblyTitle("Windows 工具箱")]
[assembly: AssemblyVersion("2.5.602.0")]
[assembly: AssemblyVersion("2.6.612.0")]
5 changes: 3 additions & 2 deletions WindowsTools/Services/Controls/Download/BitsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Diagnostics.Tracing;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using WindowsTools.Services.Root;
Expand Down Expand Up @@ -128,7 +129,7 @@ public static unsafe void CreateDownload(string url, string saveFilePath)
DownloadID = downloadID
};
backgroundCopyCallback.StatusChanged += OnStatusChanged;
downloadJob.SetNotifyInterface(backgroundCopyCallback);
downloadJob.SetNotifyInterface(new UnknownWrapper (backgroundCopyCallback).WrappedObject);
downloadJob.GetProgress(out BG_JOB_PROGRESS progress);
DownloadCreated?.Invoke(backgroundCopyCallback.DownloadID, Path.GetFileName(saveFilePath), saveFilePath, url, progress.BytesTotal is ulong.MaxValue ? 0 : progress.BytesTotal);
Expand All @@ -141,7 +142,7 @@ public static unsafe void CreateDownload(string url, string saveFilePath)
}
}
int result = downloadJob.Resume();
downloadJob.Resume();
}
}
catch (Exception e)
Expand Down

0 comments on commit 40c9db1

Please sign in to comment.