mirror of
https://github.com/ppy/osu.git
synced 2025-03-06 03:42:55 +08:00
Avoid humanizer regex compilation overhead when opening song select for the first time
This commit is contained in:
parent
822c556c5a
commit
4919069ea6
@ -5,7 +5,6 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Humanizer;
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Audio;
|
using osu.Framework.Audio;
|
||||||
using osu.Framework.Audio.Sample;
|
using osu.Framework.Audio.Sample;
|
||||||
@ -864,7 +863,7 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
// Intentionally not localised until we have proper support for this (see https://github.com/ppy/osu-framework/pull/4918
|
// Intentionally not localised until we have proper support for this (see https://github.com/ppy/osu-framework/pull/4918
|
||||||
// but also in this case we want support for formatting a number within a string).
|
// but also in this case we want support for formatting a number within a string).
|
||||||
FilterControl.InformationalText = $"{"match".ToQuantity(Carousel.CountDisplayed, "#,0")}";
|
FilterControl.InformationalText = Carousel.CountDisplayed != 1 ? $"{Carousel.CountDisplayed} matches" : $"{Carousel.CountDisplayed} match";
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool boundLocalBindables;
|
private bool boundLocalBindables;
|
||||||
|
Loading…
Reference in New Issue
Block a user