1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Fix comments async loading wasn't really async

This commit is contained in:
Andrei Zavatski 2020-01-06 20:56:32 +03:00
parent 7fa3b95286
commit 031bed15da

View File

@ -16,6 +16,7 @@ using osu.Framework.Graphics.Shapes;
using System.Linq; using System.Linq;
using osu.Game.Graphics.Sprites; using osu.Game.Graphics.Sprites;
using osu.Game.Online.Chat; using osu.Game.Online.Chat;
using osu.Framework.Allocation;
namespace osu.Game.Overlays.Comments namespace osu.Game.Overlays.Comments
{ {
@ -28,10 +29,16 @@ namespace osu.Game.Overlays.Comments
private readonly BindableBool childrenExpanded = new BindableBool(true); private readonly BindableBool childrenExpanded = new BindableBool(true);
private readonly FillFlowContainer childCommentsVisibilityContainer; private FillFlowContainer childCommentsVisibilityContainer;
private readonly Comment comment; private readonly Comment comment;
public DrawableComment(Comment comment) public DrawableComment(Comment comment)
{
this.comment = comment;
}
[BackgroundDependencyLoader]
private void load()
{ {
LinkFlowContainer username; LinkFlowContainer username;
FillFlowContainer childCommentsContainer; FillFlowContainer childCommentsContainer;
@ -41,8 +48,6 @@ namespace osu.Game.Overlays.Comments
GridContainer content; GridContainer content;
VotePill votePill; VotePill votePill;
this.comment = comment;
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
InternalChild = new FillFlowContainer InternalChild = new FillFlowContainer