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:
parent
56a611b47e
commit
dac7d21302
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user