Skip to content

Commit

Permalink
Commit missed change from #1545
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed May 10, 2018
1 parent 3cde222 commit 52bf9b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Framework/Configuration/Bindable.cs
Expand Up @@ -167,7 +167,7 @@ protected void TriggerValueChange(bool propagateToBindings = true)
// check a bound bindable hasn't changed the value again (it will fire its own event)
T beforePropagation = value;
if (propagateToBindings) Bindings?.ForEachAlive(b => b.Value = value);
if (Equals(beforePropagation, Value))
if (Equals(beforePropagation, value))
ValueChanged?.Invoke(value);
}

Expand All @@ -176,7 +176,7 @@ protected void TriggerDisabledChange(bool propagateToBindings = true)
// check a bound bindable hasn't changed the value again (it will fire its own event)
bool beforePropagation = disabled;
if (propagateToBindings) Bindings?.ForEachAlive(b => b.Disabled = disabled);
if (Equals(beforePropagation, Disabled))
if (Equals(beforePropagation, disabled))
DisabledChanged?.Invoke(disabled);
}

Expand Down

0 comments on commit 52bf9b9

Please sign in to comment.