Unbind from previous bindable when rebinding a SettingsItem

This commit is contained in:
Dean Herbert 2019-06-18 14:24:44 +09:00
parent 0d4c6d2cbc
commit 6823ba1ab0

View File

@ -63,6 +63,9 @@ namespace osu.Game.Overlays.Settings
set
{
if (bindable != null)
controlWithCurrent?.Current.UnbindFrom(bindable);
bindable = value;
controlWithCurrent?.Current.BindTo(bindable);