mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
cache scroll container
This commit is contained in:
parent
4e73d02540
commit
e28b38653b
@ -26,6 +26,9 @@ namespace osu.Game.Overlays
|
||||
[Resolved]
|
||||
private IAPIProvider api { get; set; }
|
||||
|
||||
[Cached]
|
||||
private readonly OverlayScrollContainer scrollContainer;
|
||||
|
||||
private GetWikiRequest request;
|
||||
|
||||
private CancellationTokenSource cancellationToken;
|
||||
@ -37,6 +40,7 @@ namespace osu.Game.Overlays
|
||||
public WikiOverlay()
|
||||
: base(OverlayColourScheme.Orange, false)
|
||||
{
|
||||
scrollContainer = ScrollFlow;
|
||||
}
|
||||
|
||||
public void ShowPage(string pagePath = index_path)
|
||||
|
Loading…
Reference in New Issue
Block a user