mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09: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
|
set
|
||||||
{
|
{
|
||||||
|
if (bindable != null)
|
||||||
|
controlWithCurrent?.Current.UnbindFrom(bindable);
|
||||||
|
|
||||||
bindable = value;
|
bindable = value;
|
||||||
controlWithCurrent?.Current.BindTo(bindable);
|
controlWithCurrent?.Current.BindTo(bindable);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user