Fix incorrect unbind logic

This commit is contained in:
Dean Herbert 2019-06-13 19:04:59 +09:00
parent 89c68c78d1
commit d744c900c2
1 changed files with 3 additions and 1 deletions

View File

@ -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);