1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:07:25 +08:00

Use constant

This commit is contained in:
Dean Herbert 2021-06-01 14:02:32 +09:00
parent 6e4730652e
commit 27b7039520

View File

@ -16,7 +16,7 @@ namespace osu.Game.Overlays
{
public class WikiOverlay : OnlineOverlay<WikiHeader>
{
private const string index_path = "Main_Page";
private const string index_path = @"main_page";
private readonly Bindable<string> path = new Bindable<string>(index_path);
@ -101,7 +101,7 @@ namespace osu.Game.Overlays
{
wikiData.Value = response;
if (response.Layout == "main_page")
if (response.Layout == index_path)
{
LoadDisplay(new WikiMainPage
{