mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-18 14:44:29 +01:00
Move Collection Change Counter to Collection instead of Cache so it does not reset if cache is destroyed.
This commit is contained in:
parent
f984283231
commit
70bae7737e
4 changed files with 13 additions and 13 deletions
|
|
@ -18,8 +18,9 @@ public partial class ModCollection
|
|||
public bool HasCache
|
||||
=> _cache != null;
|
||||
|
||||
public int RecomputeCounter
|
||||
=> _cache?.ChangeCounter ?? 0;
|
||||
// Count the number of changes of the effective file list.
|
||||
// This is used for material and imc changes.
|
||||
public int ChangeCounter { get; private set; }
|
||||
|
||||
// Only create, do not update.
|
||||
private void CreateCache()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue