mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:47:22 +01:00
fix imports and update to api11
This commit is contained in:
parent
0499d837d6
commit
61d6458707
4 changed files with 4 additions and 6 deletions
2
MareAPI
2
MareAPI
|
|
@ -1 +1 @@
|
|||
Subproject commit 21fe024dfb8cecad466dfc8ceef15040300ad342
|
||||
Subproject commit 374cc31babec9ac37aa21104d7fc02e41cd0d38e
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<Authors></Authors>
|
||||
<Company></Company>
|
||||
<Version>0.3.4</Version>
|
||||
<Version>0.3.5</Version>
|
||||
<Description></Description>
|
||||
<Copyright></Copyright>
|
||||
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ using MareSynchronos.WebAPI;
|
|||
using Dalamud.Interface.Windowing;
|
||||
using MareSynchronos.UI;
|
||||
using MareSynchronos.Utils;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace MareSynchronos
|
||||
{
|
||||
|
|
|
|||
|
|
@ -74,10 +74,7 @@ namespace MareSynchronos.WebAPI
|
|||
Logger.Debug("Downloading files (Download ID " + currentDownloadId + ")");
|
||||
|
||||
List<DownloadFileDto> downloadFileInfoFromService = new List<DownloadFileDto>();
|
||||
foreach (var file in fileReplacementDto)
|
||||
{
|
||||
downloadFileInfoFromService.Add(await _mareHub!.InvokeAsync<DownloadFileDto>(Api.InvokeFileGetFileSize, file.Hash, ct));
|
||||
}
|
||||
downloadFileInfoFromService.AddRange(await _mareHub!.InvokeAsync<List<DownloadFileDto>>(Api.InvokeGetFilesSizes, fileReplacementDto.Select(f => f.Hash).ToList(), ct));
|
||||
|
||||
CurrentDownloads[currentDownloadId] = downloadFileInfoFromService.Distinct().Select(d => new DownloadFileTransfer(d))
|
||||
.Where(d => d.CanBeTransferred).ToList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue