mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 21:03:21 +08:00
Use ??= operator instead of null check.
This commit is contained in:
parent
d8d4022119
commit
e44951969f
@ -138,8 +138,7 @@ namespace osu.Game.Screens
|
|||||||
{
|
{
|
||||||
sampleExit = audio.Samples.Get(@"UI/screen-back");
|
sampleExit = audio.Samples.Get(@"UI/screen-back");
|
||||||
|
|
||||||
if (Activity.Value == null)
|
Activity.Value ??= InitialActivity;
|
||||||
Activity.Value = InitialActivity;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnResuming(IScreen last)
|
public override void OnResuming(IScreen last)
|
||||||
|
Loading…
Reference in New Issue
Block a user