Inspect current track directly

This commit is contained in:
smoogipoo 2020-08-11 13:53:23 +09:00
parent faff0a70c4
commit 031d29ac34

View File

@ -234,9 +234,9 @@ namespace osu.Game.Overlays
pendingBeatmapSwitch = null; pendingBeatmapSwitch = null;
} }
var track = musicController.TrackLoaded ? musicController.CurrentTrack : null; var track = musicController.CurrentTrack;
if (track?.IsDummyDevice == false) if (track.IsDummyDevice == false)
{ {
progressBar.EndTime = track.Length; progressBar.EndTime = track.Length;
progressBar.CurrentTime = track.CurrentTime; progressBar.CurrentTime = track.CurrentTime;