1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 21:42:55 +08:00

Rename method to reflect what it actually does

This commit is contained in:
Bartłomiej Dach 2022-01-03 19:30:17 +01:00
parent 2660f41339
commit 97439c3df1
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -140,7 +140,7 @@ namespace osu.Game.Overlays
if (searchResult.Type == BeatmapListingFilterControl.SearchResultType.SupporterOnlyFilters) if (searchResult.Type == BeatmapListingFilterControl.SearchResultType.SupporterOnlyFilters)
{ {
supporterRequiredContent.UpdateText(searchResult.SupporterOnlyFiltersUsed); supporterRequiredContent.UpdateText(searchResult.SupporterOnlyFiltersUsed);
addContentToPlaceholder(supporterRequiredContent); addContentToResultsArea(supporterRequiredContent);
return; return;
} }
@ -151,13 +151,13 @@ namespace osu.Game.Overlays
//No matches case //No matches case
if (!newCards.Any()) if (!newCards.Any())
{ {
addContentToPlaceholder(notFoundContent); addContentToResultsArea(notFoundContent);
return; return;
} }
var content = createCardContainerFor(newCards); var content = createCardContainerFor(newCards);
panelLoadTask = LoadComponentAsync(foundContent = content, addContentToPlaceholder, (cancellationToken = new CancellationTokenSource()).Token); panelLoadTask = LoadComponentAsync(foundContent = content, addContentToResultsArea, (cancellationToken = new CancellationTokenSource()).Token);
} }
else else
{ {
@ -192,7 +192,7 @@ namespace osu.Game.Overlays
return content; return content;
} }
private void addContentToPlaceholder(Drawable content) private void addContentToResultsArea(Drawable content)
{ {
Loading.Hide(); Loading.Hide();
lastFetchDisplayedTime = Time.Current; lastFetchDisplayedTime = Time.Current;