Fix broken WikiHeader

This commit is contained in:
kj415j45
2021-07-17 19:40:25 +08:00
parent 5b694ad28b
commit 22ff40fdd5

View File

@ -5,6 +5,7 @@ using System;
using System.Linq; using System.Linq;
using osu.Framework.Bindables; using osu.Framework.Bindables;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Localisation;
using osu.Game.Online.API.Requests.Responses; using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Overlays.Wiki namespace osu.Game.Overlays.Wiki
@ -34,7 +35,7 @@ namespace osu.Game.Overlays.Wiki
return; return;
TabControl.Clear(); TabControl.Clear();
Current.Value = null; Current.Value = string.Empty;
TabControl.AddItem(index_page_string); TabControl.AddItem(index_page_string);
@ -51,7 +52,7 @@ namespace osu.Game.Overlays.Wiki
Current.Value = e.NewValue.Title; Current.Value = e.NewValue.Title;
} }
private void onCurrentChange(ValueChangedEvent<string> e) private void onCurrentChange(ValueChangedEvent<LocalisableString> e)
{ {
if (e.NewValue == TabControl.Items.LastOrDefault()) if (e.NewValue == TabControl.Items.LastOrDefault())
return; return;