mirror of https://github.com/ppy/osu
Fix incorrect unbind logic
This commit is contained in:
parent
89c68c78d1
commit
d744c900c2
|
@ -63,7 +63,9 @@ public virtual Bindable<T> Bindable
|
|||
|
||||
set
|
||||
{
|
||||
controlWithCurrent?.Current.UnbindBindings();
|
||||
if (bindable != null)
|
||||
controlWithCurrent?.Current.UnbindFrom(bindable);
|
||||
|
||||
bindable = value;
|
||||
controlWithCurrent?.Current.BindTo(bindable);
|
||||
|
||||
|
|
Loading…
Reference in New Issue