Profiles - Avoid unnecessary OnBrokenStateChanged calls

Profiles - Fixed int range/float range deserialization
Profiles - Use Random.Shared where applicable
This commit is contained in:
RobertBeekman committed 2024-03-02 17:38:20 +01:00
1 parent 5c7497a859
commit 28640f9502
5 files changed
+14 -5

No files matched your search

@@ -61,6 +61,9 @@ public abstract class BreakableModel : CorePropertyChanged, IBreakableModel
/// <inheritdoc />
public void SetBrokenState(string state, Exception? exception = null)
{
if (state == BrokenState && BrokenStateException?.StackTrace == exception?.StackTrace)
return;
BrokenState = state ?? throw new ArgumentNullException(nameof(state));
BrokenStateException = exception;
OnBrokenStateChanged();