Allow null for breadcrumb control

This commit is contained in:
bdach
2021-07-17 20:33:26 +08:00
committed by kj415j45
parent e3c10e3994
commit 7859d02c5b
2 changed files with 7 additions and 7 deletions

View File

@ -35,7 +35,7 @@ namespace osu.Game.Overlays.Wiki
return;
TabControl.Clear();
Current.Value = string.Empty;
Current.Value = null;
TabControl.AddItem(index_page_string);
@ -52,7 +52,7 @@ namespace osu.Game.Overlays.Wiki
Current.Value = e.NewValue.Title;
}
private void onCurrentChange(ValueChangedEvent<LocalisableString> e)
private void onCurrentChange(ValueChangedEvent<LocalisableString?> e)
{
if (e.NewValue == TabControl.Items.LastOrDefault())
return;