mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +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;
|
||||
|
||||
[Resolved]
|
||||
private GameplayClockContainer gameplayClock { get; set; } = null!;
|
||||
private GameplayClockContainer? gameplayClock { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private GameplayState gameplayState { get; set; } = null!;
|
||||
private GameplayState? gameplayState { get; set; }
|
||||
|
||||
public PlaybackSettings()
|
||||
: base("playback")
|
||||
@ -150,7 +150,7 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
||||
protected override void 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