1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:33:05 +08:00

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