Use bindable flow for event propagation

This commit is contained in:
Dean Herbert
2020-10-14 15:21:28 +09:00
parent 24eff8c66d
commit 3e326a9234
2 changed files with 19 additions and 5 deletions

View File

@ -289,8 +289,11 @@ namespace osu.Game.Overlays.Mods
Width = 0.25f,
Alpha = 0,
X = -100,
SelectedMods = { BindTarget = SelectedMods },
}
};
((IBindable<bool>)CustomiseButton.Enabled).BindTo(ModSettingsContainer.HasSettingsForSelection);
}
[BackgroundDependencyLoader(true)]
@ -399,8 +402,6 @@ namespace osu.Game.Overlays.Mods
section.SelectTypes(mods.NewValue.Select(m => m.GetType()).ToList());
updateMods();
CustomiseButton.Enabled.Value = ModSettingsContainer.UpdateModSettings(mods);
}
private void updateMods()