mirror of
https://github.com/ppy/osu
synced 2025-01-09 23:59:44 +00:00
Fix PaginatedProfileSubsection
ctor arguments
This commit is contained in:
parent
fbbf8ce5a3
commit
2f3ed4a4ab
@ -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;
|
||||
|
@ -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()
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user