mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Unbind from previous bindable when rebinding a SettingsItem
This commit is contained in:
parent
0d4c6d2cbc
commit
6823ba1ab0
@ -63,6 +63,9 @@ namespace osu.Game.Overlays.Settings
|
||||
|
||||
set
|
||||
{
|
||||
if (bindable != null)
|
||||
controlWithCurrent?.Current.UnbindFrom(bindable);
|
||||
|
||||
bindable = value;
|
||||
controlWithCurrent?.Current.BindTo(bindable);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user