1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 00:33:21 +08:00

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;
}
var track = musicController.TrackLoaded ? musicController.CurrentTrack : null;
var track = musicController.CurrentTrack;
if (track?.IsDummyDevice == false)
if (track.IsDummyDevice == false)
{
progressBar.EndTime = track.Length;
progressBar.CurrentTime = track.CurrentTime;