mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Fix cached property being assigned twice
This commit is contained in:
parent
565f147a5c
commit
1a90fb1ef3
@ -11,7 +11,7 @@ namespace osu.Game.Screens.Edit.Setup
|
|||||||
public class SetupScreen : EditorRoundedScreen
|
public class SetupScreen : EditorRoundedScreen
|
||||||
{
|
{
|
||||||
[Cached]
|
[Cached]
|
||||||
private SectionsContainer<SetupSection> sections = new SectionsContainer<SetupSection>();
|
private SectionsContainer<SetupSection> sections { get; } = new SetupScreenSectionsContainer();
|
||||||
|
|
||||||
[Cached]
|
[Cached]
|
||||||
private SetupScreenHeader header = new SetupScreenHeader();
|
private SetupScreenHeader header = new SetupScreenHeader();
|
||||||
@ -37,15 +37,12 @@ namespace osu.Game.Screens.Edit.Setup
|
|||||||
if (rulesetSpecificSection != null)
|
if (rulesetSpecificSection != null)
|
||||||
sectionsEnumerable.Add(rulesetSpecificSection);
|
sectionsEnumerable.Add(rulesetSpecificSection);
|
||||||
|
|
||||||
AddRange(new Drawable[]
|
Add(sections.With(s =>
|
||||||
{
|
{
|
||||||
sections = new SetupScreenSectionsContainer
|
s.RelativeSizeAxes = Axes.Both;
|
||||||
{
|
s.ChildrenEnumerable = sectionsEnumerable;
|
||||||
RelativeSizeAxes = Axes.Both,
|
s.FixedHeader = header;
|
||||||
ChildrenEnumerable = sectionsEnumerable,
|
}));
|
||||||
FixedHeader = header
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private class SetupScreenSectionsContainer : SectionsContainer<SetupSection>
|
private class SetupScreenSectionsContainer : SectionsContainer<SetupSection>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user