Skip to content

Commit

Permalink
Quote source text when searching for it via click
Browse files Browse the repository at this point in the history
Addresses ppy#30181.
  • Loading branch information
peppy committed Oct 23, 2024
1 parent 71eb712 commit 21351b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osu.Game/Overlays/BeatmapSet/MetadataSectionSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public MetadataSectionSource(Action<string>? searchAction = null)
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}\"");
}
}
}

0 comments on commit 21351b1

Please sign in to comment.