mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
fixup! Convert BadgeDisplay to use bindable
This commit is contained in:
@ -71,7 +71,12 @@ namespace osu.Game.Overlays
|
||||
header.ListingSelected += ShowListing;
|
||||
|
||||
// todo: better
|
||||
badges.Current.ValueChanged += e => ShowBuild(e.NewValue.LatestBuild);
|
||||
badges.Current.ValueChanged += e =>
|
||||
{
|
||||
if (e.NewValue?.LatestBuild != null)
|
||||
ShowBuild(e.NewValue.LatestBuild);
|
||||
};
|
||||
|
||||
listing.BuildSelected += ShowBuild;
|
||||
content.BuildSelected += ShowBuild;
|
||||
|
||||
@ -149,7 +154,7 @@ namespace osu.Game.Overlays
|
||||
header.ShowListing();
|
||||
|
||||
content.Hide();
|
||||
badges.SelectNone();
|
||||
badges.Current.Value = null;
|
||||
listing.Show();
|
||||
scroll.ScrollTo(savedScrollPosition);
|
||||
}
|
||||
|
Reference in New Issue
Block a user