1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-19 13:53:10 +08:00

Change where BindValueChange is immediately run

This commit is contained in:
Dean Herbert 2019-01-31 18:49:54 +09:00
parent 7f2fdac50e
commit c54a515b3e

View File

@ -190,6 +190,8 @@ namespace osu.Game.Overlays.BeatmapSet
{ {
tabsBg.Colour = colours.Gray3; tabsBg.Colour = colours.Gray3;
State.BindValueChanged(_ => updateDownloadButtons());
BeatmapSet.BindValueChanged(beatmapSet => BeatmapSet.BindValueChanged(beatmapSet =>
{ {
Picker.BeatmapSet = author.BeatmapSet = Details.BeatmapSet = beatmapSet; Picker.BeatmapSet = author.BeatmapSet = Details.BeatmapSet = beatmapSet;
@ -211,9 +213,7 @@ namespace osu.Game.Overlays.BeatmapSet
} }
updateDownloadButtons(); updateDownloadButtons();
}); }, true);
State.BindValueChanged(_ => updateDownloadButtons(), true);
} }
private void updateDownloadButtons() private void updateDownloadButtons()