Apply review suggestions

This commit is contained in:
Lucas A
2019-12-14 11:40:59 +01:00
parent 43720fbf45
commit 0a278ef943
3 changed files with 7 additions and 9 deletions

View File

@ -59,19 +59,19 @@ namespace osu.Game.Overlays
Current.TriggerChange();
}
private CancellationTokenSource loadChildCancellation;
private CancellationTokenSource loadContentCancellation;
protected void LoadAndShowChild(NewsContent newContent)
protected void LoadAndShowContent(NewsContent newContent)
{
content.FadeTo(0.2f, 300, Easing.OutQuint);
loadChildCancellation?.Cancel();
loadContentCancellation?.Cancel();
LoadComponentAsync(newContent, c =>
{
content.Child = c;
content.FadeIn(300, Easing.OutQuint);
}, (loadChildCancellation = new CancellationTokenSource()).Token);
}, (loadContentCancellation = new CancellationTokenSource()).Token);
}
public void ShowFrontPage()