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:
parent
faff0a70c4
commit
031d29ac34
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user