Take IssueList in IssueSettings constructor

We'll be using this for bindables later.
This commit is contained in:
Naxess 2021-05-12 01:22:32 +02:00
parent 97bd482d4d
commit d3c1ec55ee
2 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,11 @@ namespace osu.Game.Screens.Edit.Verify
{
public class IssueSettings : Settings
{
private readonly IssueList issueList;
public IssueSettings(IssueList issueList)
{
this.issueList = issueList;
}
protected override IReadOnlyList<Drawable> CreateSections() => new Drawable[]

View File

@ -30,6 +30,8 @@ namespace osu.Game.Screens.Edit.Verify
[BackgroundDependencyLoader]
private void load()
{
IssueList issueList;
Child = new Container
{
RelativeSizeAxes = Axes.Both,
@ -45,8 +47,8 @@ namespace osu.Game.Screens.Edit.Verify
{
new Drawable[]
{
new IssueList(),
new IssueSettings(),
issueList = new IssueList(),
new IssueSettings(issueList),
},
}
}