1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +08:00

Merge pull request #5054 from peppy/settings-item-unbind-previous-bindable

Unbind from previous bindable when rebinding a SettingsItem
This commit is contained in:
Dean Herbert 2019-06-19 13:09:19 +09:00 committed by GitHub
commit fbd9ebf02d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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