mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Fix potential nullref
This commit is contained in:
@ -91,7 +91,8 @@ namespace osu.Game.Overlays.BeatmapListing
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OverlayColourProvider colourProvider)
|
||||
{
|
||||
((FilterDropdown)Dropdown).AccentColour = colourProvider.Light2;
|
||||
if (Dropdown is FilterDropdown fd)
|
||||
fd.AccentColour = colourProvider.Light2;
|
||||
}
|
||||
|
||||
protected override Dropdown<T> CreateDropdown() => new FilterDropdown();
|
||||
|
Reference in New Issue
Block a user