mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Hoist scroll cache declaration to original place of definition
This commit is contained in:
parent
e606bf249a
commit
a0bda9ad59
@ -1,6 +1,7 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
@ -13,7 +14,9 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
[Cached]
|
||||
protected readonly OverlayScrollContainer ScrollFlow;
|
||||
|
||||
protected readonly LoadingLayer Loading;
|
||||
private readonly Container content;
|
||||
|
||||
|
@ -25,9 +25,6 @@ namespace osu.Game.Overlays
|
||||
[Resolved]
|
||||
private IAPIProvider api { get; set; }
|
||||
|
||||
[Cached]
|
||||
private readonly OverlayScrollContainer scrollContainer;
|
||||
|
||||
private GetWikiRequest request;
|
||||
|
||||
private CancellationTokenSource cancellationToken;
|
||||
@ -39,7 +36,6 @@ 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