1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 15:23:14 +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;
State.BindValueChanged(_ => updateDownloadButtons());
BeatmapSet.BindValueChanged(beatmapSet =>
{
Picker.BeatmapSet = author.BeatmapSet = Details.BeatmapSet = beatmapSet;
@ -211,9 +213,7 @@ namespace osu.Game.Overlays.BeatmapSet
}
updateDownloadButtons();
});
State.BindValueChanged(_ => updateDownloadButtons(), true);
}, true);
}
private void updateDownloadButtons()