Skip to content

Commit

Permalink
Merge pull request ppy#30400 from peppy/quote-source-search
Browse files Browse the repository at this point in the history
Quote source text when searching for it via click
  • Loading branch information
peppy authored Oct 23, 2024
2 parents 77d2f35 + 2bea1fe commit 7b2ca2f
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($@"source=""""{metadata}"""""));
else
loaded.AddLink(metadata, LinkAction.SearchBeatmapSet, metadata);
loaded.AddLink(metadata, LinkAction.SearchBeatmapSet, $@"source=""""{metadata}""""");
}
}
}

0 comments on commit 7b2ca2f

Please sign in to comment.