mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:12:56 +08:00
Remove pattern-matching on nullable with simple .HasValue
/.Value
This commit is contained in:
parent
ca55287dd0
commit
655e8d3d86
@ -180,8 +180,8 @@ namespace osu.Game.Screens.Play
|
|||||||
starDifficulty = difficultyCache.GetBindableDifficulty(beatmap.BeatmapInfo);
|
starDifficulty = difficultyCache.GetBindableDifficulty(beatmap.BeatmapInfo);
|
||||||
starDifficulty.BindValueChanged(difficulty =>
|
starDifficulty.BindValueChanged(difficulty =>
|
||||||
{
|
{
|
||||||
if (difficulty.NewValue is StarDifficulty diff)
|
if (difficulty.NewValue.HasValue)
|
||||||
starRatingDisplay.Current.Value = diff;
|
starRatingDisplay.Current.Value = difficulty.NewValue.Value;
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
Loading = true;
|
Loading = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user