diff options
Diffstat (limited to 'UVtools.Core/Operations/OperationMask.cs')
-rw-r--r-- | UVtools.Core/Operations/OperationMask.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/UVtools.Core/Operations/OperationMask.cs b/UVtools.Core/Operations/OperationMask.cs index 809fdbb..4b43b5a 100644 --- a/UVtools.Core/Operations/OperationMask.cs +++ b/UVtools.Core/Operations/OperationMask.cs @@ -81,10 +81,7 @@ namespace UVtools.Core.Operations using var mat = SlicerFile[layerIndex].LayerMat; Execute(mat); SlicerFile[layerIndex].LayerMat = mat; - lock (progress.Mutex) - { - progress++; - } + progress.LockAndIncrement(); }); return !progress.Token.IsCancellationRequested; |