mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 01:33:01 +08:00
Rename method to reflect what it actually does
This commit is contained in:
parent
2660f41339
commit
97439c3df1
@ -140,7 +140,7 @@ namespace osu.Game.Overlays
|
||||
if (searchResult.Type == BeatmapListingFilterControl.SearchResultType.SupporterOnlyFilters)
|
||||
{
|
||||
supporterRequiredContent.UpdateText(searchResult.SupporterOnlyFiltersUsed);
|
||||
addContentToPlaceholder(supporterRequiredContent);
|
||||
addContentToResultsArea(supporterRequiredContent);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -151,13 +151,13 @@ namespace osu.Game.Overlays
|
||||
//No matches case
|
||||
if (!newCards.Any())
|
||||
{
|
||||
addContentToPlaceholder(notFoundContent);
|
||||
addContentToResultsArea(notFoundContent);
|
||||
return;
|
||||
}
|
||||
|
||||
var content = createCardContainerFor(newCards);
|
||||
|
||||
panelLoadTask = LoadComponentAsync(foundContent = content, addContentToPlaceholder, (cancellationToken = new CancellationTokenSource()).Token);
|
||||
panelLoadTask = LoadComponentAsync(foundContent = content, addContentToResultsArea, (cancellationToken = new CancellationTokenSource()).Token);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -192,7 +192,7 @@ namespace osu.Game.Overlays
|
||||
return content;
|
||||
}
|
||||
|
||||
private void addContentToPlaceholder(Drawable content)
|
||||
private void addContentToResultsArea(Drawable content)
|
||||
{
|
||||
Loading.Hide();
|
||||
lastFetchDisplayedTime = Time.Current;
|
||||
|
Loading…
Reference in New Issue
Block a user