1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-07 20:47:26 +08:00

Fix string interpolation and use GetDescription on renderer value

This commit is contained in:
Dean Herbert 2023-03-26 20:43:28 +09:00
parent ba078e8357
commit bab93bed17

View File

@ -5,6 +5,7 @@ using System.Linq;
using osu.Framework; using osu.Framework;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Configuration; using osu.Framework.Configuration;
using osu.Framework.Extensions;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Localisation; using osu.Framework.Localisation;
using osu.Framework.Platform; using osu.Framework.Platform;
@ -100,7 +101,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
protected override LocalisableString GenerateItemText(RendererType item) protected override LocalisableString GenerateItemText(RendererType item)
{ {
if (item == RendererType.Automatic && automaticRendererInUse) if (item == RendererType.Automatic && automaticRendererInUse)
return $"{base.GenerateItemText(item)} ({hostResolvedRenderer})"; return LocalisableString.Interpolate($"{base.GenerateItemText(item)} ({hostResolvedRenderer.GetDescription()})");
return base.GenerateItemText(item); return base.GenerateItemText(item);
} }