Use new Lock objects

This commit is contained in:
Haselnussbomber 2025-10-24 02:29:43 +02:00
parent 0656bff1f9
commit 6bdc785273
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1
9 changed files with 21 additions and 13 deletions

View file

@ -137,9 +137,9 @@ internal class TexWidget : IDataWindowWidget
conf.QueueSave();
}
var allBlames = this.textureManager.BlameTracker;
lock (allBlames)
lock (this.textureManager.BlameTracker)
{
var allBlames = this.textureManager.BlameTracker;
ImGui.PushID("blames"u8);
var sizeSum = allBlames.Sum(static x => Math.Max(0, x.RawSpecs.EstimatedBytes));
if (ImGui.CollapsingHeader(