Fix eject for single disc

This commit is contained in:
Matt Nadareski
2021-10-06 13:16:47 -07:00
parent ff5006063a
commit 5994ea4585

View File

@@ -1289,6 +1289,9 @@ namespace RedBookPlayer.Models.Hardware
/// </summary>
private void OpticalDiscStateChanged(object sender, PropertyChangedEventArgs e)
{
if(_opticalDiscs[CurrentDisc] == null)
return;
ImagePath = _opticalDiscs[CurrentDisc].ImagePath;
CurrentTrackNumber = _opticalDiscs[CurrentDisc].CurrentTrackNumber;
CurrentTrackIndex = _opticalDiscs[CurrentDisc].CurrentTrackIndex;