mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Enable NRT in user profile overlay
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
#nullable disable
|
||||
|
||||
using System.Diagnostics;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Extensions.Color4Extensions;
|
||||
@ -20,9 +18,9 @@ namespace osu.Game.Overlays.Profile
|
||||
{
|
||||
public partial class ProfileHeader : TabControlOverlayHeader<LocalisableString>
|
||||
{
|
||||
private UserCoverBackground coverContainer;
|
||||
private UserCoverBackground coverContainer = null!;
|
||||
|
||||
public Bindable<APIUser> User = new Bindable<APIUser>();
|
||||
public Bindable<APIUser?> User = new Bindable<APIUser?>();
|
||||
|
||||
private CentreHeaderContainer centreHeaderContainer;
|
||||
private DetailHeaderContainer detailHeaderContainer;
|
||||
@ -102,7 +100,7 @@ namespace osu.Game.Overlays.Profile
|
||||
|
||||
protected override OverlayTitle CreateTitle() => new ProfileHeaderTitle();
|
||||
|
||||
private void updateDisplay(APIUser user) => coverContainer.User = user;
|
||||
private void updateDisplay(APIUser? user) => coverContainer.User = user;
|
||||
|
||||
private partial class ProfileHeaderTitle : OverlayTitle
|
||||
{
|
||||
|
Reference in New Issue
Block a user