mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:23:21 +08:00
Make resolved properties nullable.
This commit is contained in:
parent
2e041823a1
commit
afa808695b
@ -33,10 +33,10 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
|||||||
private readonly IconButton play;
|
private readonly IconButton play;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private GameplayClockContainer gameplayClock { get; set; } = null!;
|
private GameplayClockContainer? gameplayClock { get; set; }
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private GameplayState gameplayState { get; set; } = null!;
|
private GameplayState? gameplayState { get; set; }
|
||||||
|
|
||||||
public PlaybackSettings()
|
public PlaybackSettings()
|
||||||
: base("playback")
|
: base("playback")
|
||||||
@ -150,7 +150,7 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
|||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
play.Icon = gameplayClock.IsRunning ? FontAwesome.Regular.PauseCircle : FontAwesome.Regular.PlayCircle;
|
play.Icon = gameplayClock?.IsRunning == true ? FontAwesome.Regular.PauseCircle : FontAwesome.Regular.PlayCircle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user