mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fuck
This commit is contained in:
parent
c911977b5e
commit
4b1443ec93
2 changed files with 5 additions and 4 deletions
|
|
@ -29,6 +29,8 @@ public class CollectionCache : IDisposable
|
|||
public readonly MetaCache Meta;
|
||||
public readonly Dictionary<IMod, SingleArray<ModConflicts>> _conflicts = new();
|
||||
|
||||
public bool Calculating;
|
||||
|
||||
public IEnumerable<SingleArray<ModConflicts>> AllConflicts
|
||||
=> _conflicts.Values;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ public class CollectionCacheManager : IDisposable
|
|||
internal readonly MetaFileManager MetaFileManager;
|
||||
|
||||
public int Count { get; private set; }
|
||||
public bool Calculating { get; private set; }
|
||||
|
||||
public IEnumerable<ModCollection> Active
|
||||
=> _storage.Where(c => c.HasCache);
|
||||
|
|
@ -117,10 +116,10 @@ public class CollectionCacheManager : IDisposable
|
|||
private void FullRecalculation(ModCollection collection)
|
||||
{
|
||||
var cache = collection._cache;
|
||||
if (cache == null || Calculating)
|
||||
if (cache == null || cache.Calculating)
|
||||
return;
|
||||
|
||||
Calculating = true;
|
||||
cache.Calculating = true;
|
||||
try
|
||||
{
|
||||
cache.ResolvedFiles.Clear();
|
||||
|
|
@ -145,7 +144,7 @@ public class CollectionCacheManager : IDisposable
|
|||
}
|
||||
finally
|
||||
{
|
||||
Calculating = false;
|
||||
cache.Calculating = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue