mirror of https://github.com/ppy/osu
Unbind from previous bindable when rebinding a SettingsItem
This commit is contained in:
parent
0d4c6d2cbc
commit
6823ba1ab0
|
@ -63,6 +63,9 @@ public virtual Bindable<T> Bindable
|
|||
|
||||
set
|
||||
{
|
||||
if (bindable != null)
|
||||
controlWithCurrent?.Current.UnbindFrom(bindable);
|
||||
|
||||
bindable = value;
|
||||
controlWithCurrent?.Current.BindTo(bindable);
|
||||
|
||||
|
|
Loading…
Reference in New Issue