mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-23 08:17:59 +01:00
Added some other task handling for collection caches.
This commit is contained in:
parent
0243e7a633
commit
e98003eb09
11 changed files with 110 additions and 36 deletions
|
|
@ -3,9 +3,10 @@ using System.Collections.Generic;
|
|||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Threading.Tasks;
|
||||
using OtterGui;
|
||||
using Penumbra.Mods.Manager;
|
||||
|
||||
namespace Penumbra.Mods;
|
||||
namespace Penumbra.Mods.Editor;
|
||||
|
||||
/// <summary> Utility to create and apply a zipped backup of a mod. </summary>
|
||||
public class ModBackup
|
||||
|
|
@ -80,7 +81,7 @@ public class ModBackup
|
|||
return;
|
||||
|
||||
CreatingBackup = true;
|
||||
await Task.Run(Create);
|
||||
await AsyncTask.Run(Create);
|
||||
CreatingBackup = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public class ModNormalizer
|
|||
Step = 0;
|
||||
TotalSteps = mod.TotalFileCount + 5;
|
||||
|
||||
Worker = Task.Run(NormalizeSync);
|
||||
Worker = TrackedTask.Run(NormalizeSync);
|
||||
}
|
||||
|
||||
private void NormalizeSync()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using Penumbra.Communication;
|
||||
using Penumbra.Mods.Editor;
|
||||
using Penumbra.Services;
|
||||
|
||||
namespace Penumbra.Mods.Manager;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using System.IO;
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Penumbra.Communication;
|
||||
using Penumbra.Mods.Editor;
|
||||
using Penumbra.Services;
|
||||
|
||||
namespace Penumbra.Mods.Manager;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue