move sidebar into local variable

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-06-04 11:35:23 +07:00
parent 424d1b4025
commit 4e73d02540
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -13,7 +13,6 @@ namespace osu.Game.Overlays.Wiki
{
public class WikiArticlePage : GridContainer
{
private readonly WikiSidebar sidebar;
public Container SidebarContainer { get; }
public WikiArticlePage(string currentPath, string markdown)
@ -29,6 +28,9 @@ namespace osu.Game.Overlays.Wiki
new Dimension(GridSizeMode.AutoSize),
new Dimension(),
};
WikiSidebar sidebar;
Content = new[]
{
new Drawable[]