mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Make CalculatePerformanceAsync() nullable.
This commit is contained in:
@ -32,7 +32,11 @@ namespace osu.Game.Screens.Ranking.Expanded.Statistics
|
||||
else
|
||||
{
|
||||
performanceManager.CalculatePerformanceAsync(score, cancellationTokenSource.Token)
|
||||
.ContinueWith(t => Schedule(() => performance.Value = (int)t.Result), cancellationTokenSource.Token);
|
||||
.ContinueWith(t => Schedule(() =>
|
||||
{
|
||||
if (t.Result.HasValue)
|
||||
performance.Value = (int)t.Result.Value;
|
||||
}), cancellationTokenSource.Token);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user