1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 11:33:22 +08:00

Be explicit on nullability in RequiresPortraitOrientation

Co-authored-by: Dean Herbert <pe@ppy.sh>
This commit is contained in:
Salman Alshamrani 2025-01-25 18:12:44 -05:00
parent 56a611b47e
commit dac7d21302

View File

@ -68,7 +68,16 @@ namespace osu.Game.Screens.Play
public override bool HideMenuCursorOnNonMouseInput => true;
public override bool RequiresPortraitOrientation => DrawableRuleset?.RequiresPortraitOrientation == true;
public override bool RequiresPortraitOrientation
{
get
{
if (!LoadedBeatmapSuccessfully)
return false;
return DrawableRuleset!.RequiresPortraitOrientation;
}
}
protected override OverlayActivation InitialOverlayActivationMode => OverlayActivation.UserTriggered;