Fix PaginatedProfileSubsection ctor arguments

This commit is contained in:
Lucas A 2021-07-17 16:13:33 +02:00
parent fbbf8ce5a3
commit 2f3ed4a4ab
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ namespace osu.Game.Overlays.Profile.Sections
private OsuSpriteText missing;
private readonly LocalisableString? missingText;
protected PaginatedProfileSubsection(Bindable<User> user, LocalisableString headerText, LocalisableString? missingText = null)
protected PaginatedProfileSubsection(Bindable<User> user, LocalisableString? headerText = null, LocalisableString? missingText = null)
: base(user, headerText, CounterVisibilityState.AlwaysVisible)
{
this.missingText = missingText;

View File

@ -20,9 +20,9 @@ namespace osu.Game.Overlays.Profile.Sections
private ProfileSubsectionHeader header;
protected ProfileSubsection(Bindable<User> user, LocalisableString headerText, CounterVisibilityState counterVisibilityState = CounterVisibilityState.AlwaysHidden)
protected ProfileSubsection(Bindable<User> user, LocalisableString? headerText = null, CounterVisibilityState counterVisibilityState = CounterVisibilityState.AlwaysHidden)
{
this.headerText = headerText;
this.headerText = headerText ?? string.Empty;
this.counterVisibilityState = counterVisibilityState;
User.BindTo(user);
}
@ -38,7 +38,7 @@ namespace osu.Game.Overlays.Profile.Sections
{
header = new ProfileSubsectionHeader(headerText, counterVisibilityState)
{
Alpha = string.IsNullOrEmpty(headerText) ? 0 : 1
Alpha = string.IsNullOrEmpty(headerText.ToString()) ? 0 : 1
},
CreateContent()
};