1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 07:02:54 +08:00

Quote source text when searching for it via click

Addresses https://github.com/ppy/osu/discussions/30181.
This commit is contained in:
Dean Herbert 2024-10-23 15:41:42 +09:00
parent 71eb7120ba
commit 21351b1be4
No known key found for this signature in database

View File

@ -17,9 +17,9 @@ namespace osu.Game.Overlays.BeatmapSet
protected override void AddMetadata(string metadata, LinkFlowContainer loaded)
{
if (SearchAction != null)
loaded.AddLink(metadata, () => SearchAction(metadata));
loaded.AddLink(metadata, () => SearchAction($"\"{metadata}\""));
else
loaded.AddLink(metadata, LinkAction.SearchBeatmapSet, metadata);
loaded.AddLink(metadata, LinkAction.SearchBeatmapSet, $"\"{metadata}\"");
}
}
}