mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 20:42: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:
parent
71eb7120ba
commit
21351b1be4
@ -17,9 +17,9 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
protected override void AddMetadata(string metadata, LinkFlowContainer loaded)
|
protected override void AddMetadata(string metadata, LinkFlowContainer loaded)
|
||||||
{
|
{
|
||||||
if (SearchAction != null)
|
if (SearchAction != null)
|
||||||
loaded.AddLink(metadata, () => SearchAction(metadata));
|
loaded.AddLink(metadata, () => SearchAction($"\"{metadata}\""));
|
||||||
else
|
else
|
||||||
loaded.AddLink(metadata, LinkAction.SearchBeatmapSet, metadata);
|
loaded.AddLink(metadata, LinkAction.SearchBeatmapSet, $"\"{metadata}\"");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user