mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
remove downloads on cancellation, add note to where to put the cache folder
This commit is contained in:
parent
11cc190528
commit
54abfd74dc
3 changed files with 7 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors></Authors>
|
<Authors></Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>0.0.8.0</Version>
|
<Version>0.0.9.0</Version>
|
||||||
<Description></Description>
|
<Description></Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
||||||
|
|
|
||||||
|
|
@ -307,6 +307,7 @@ namespace MareSynchronos.UI
|
||||||
|
|
||||||
public void DrawCacheDirectorySetting()
|
public void DrawCacheDirectorySetting()
|
||||||
{
|
{
|
||||||
|
ColorTextWrapped("Note: The cache folder should be somewhere close to root (i.e. C:\\MareCache) in a new empty folder. DO NOT point this to your game folder. DO NOT point this to your Penumbra folder.", ImGuiColors.DalamudYellow);
|
||||||
var cacheDirectory = _pluginConfiguration.CacheFolder;
|
var cacheDirectory = _pluginConfiguration.CacheFolder;
|
||||||
if (ImGui.InputText("Cache Folder##cache", ref cacheDirectory, 255))
|
if (ImGui.InputText("Cache Folder##cache", ref cacheDirectory, 255))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,11 @@ namespace MareSynchronos.WebAPI
|
||||||
await Task.Delay(250, ct);
|
await Task.Delay(250, ct);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ct.IsCancellationRequested)
|
||||||
|
{
|
||||||
|
CurrentDownloads.RemoveAll(d => fileReplacementDto.Any(f => f.Hash == d.Hash));
|
||||||
|
}
|
||||||
|
|
||||||
CurrentDownloads.RemoveAll(d => d.Transferred == d.Total || !d.CanBeTransferred);
|
CurrentDownloads.RemoveAll(d => d.Transferred == d.Total || !d.CanBeTransferred);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue