Move Collection Change Counter to Collection instead of Cache so it does not reset if cache is destroyed.

This commit is contained in:
Ottermandias 2022-07-08 10:50:57 +02:00
parent f984283231
commit 70bae7737e
4 changed files with 13 additions and 13 deletions

View file

@ -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()