mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Unrevert null-colaescing/conditionals removal
This commit is contained in:
@ -307,11 +307,7 @@ namespace osu.Game.Screens.Edit
|
||||
/// <summary>
|
||||
/// If the beatmap's track has changed, this method must be called to keep the editor in a valid state.
|
||||
/// </summary>
|
||||
public void UpdateClockSource()
|
||||
{
|
||||
var sourceClock = (IAdjustableClock)Beatmap.Value.Track ?? new StopwatchClock();
|
||||
clock.ChangeSource(sourceClock);
|
||||
}
|
||||
public void UpdateClockSource() => clock.ChangeSource(Beatmap.Value.Track);
|
||||
|
||||
protected void Save()
|
||||
{
|
||||
@ -582,7 +578,7 @@ namespace osu.Game.Screens.Edit
|
||||
|
||||
private void resetTrack(bool seekToStart = false)
|
||||
{
|
||||
Beatmap.Value.Track?.Stop();
|
||||
Beatmap.Value.Track.Stop();
|
||||
|
||||
if (seekToStart)
|
||||
{
|
||||
|
Reference in New Issue
Block a user