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:
parent
7f2fdac50e
commit
c54a515b3e
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user