1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Fix beatmap info not showing individual difficulty bpm

This commit is contained in:
Joseph Madamba 2023-06-19 10:20:56 -07:00
parent 2d8a74d776
commit 362fe62b4b
No known key found for this signature in database
GPG Key ID: 8B746C7BDDF0BD76

View File

@ -58,16 +58,18 @@ namespace osu.Game.Overlays.BeatmapSet
private void updateDisplay()
{
bpm.Value = BeatmapSet?.BPM.ToLocalisableString(@"0.##") ?? (LocalisableString)"-";
if (beatmapInfo == null)
{
bpm.Value = "-";
length.Value = string.Empty;
circleCount.Value = string.Empty;
sliderCount.Value = string.Empty;
}
else
{
bpm.Value = beatmapInfo.BPM.ToLocalisableString(@"0.##");
length.Value = TimeSpan.FromMilliseconds(beatmapInfo.Length).ToFormattedDuration();
if (beatmapInfo is not IBeatmapOnlineInfo onlineInfo) return;