mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Fix eject for single disc
This commit is contained in:
@@ -1289,6 +1289,9 @@ namespace RedBookPlayer.Models.Hardware
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void OpticalDiscStateChanged(object sender, PropertyChangedEventArgs e)
|
private void OpticalDiscStateChanged(object sender, PropertyChangedEventArgs e)
|
||||||
{
|
{
|
||||||
|
if(_opticalDiscs[CurrentDisc] == null)
|
||||||
|
return;
|
||||||
|
|
||||||
ImagePath = _opticalDiscs[CurrentDisc].ImagePath;
|
ImagePath = _opticalDiscs[CurrentDisc].ImagePath;
|
||||||
CurrentTrackNumber = _opticalDiscs[CurrentDisc].CurrentTrackNumber;
|
CurrentTrackNumber = _opticalDiscs[CurrentDisc].CurrentTrackNumber;
|
||||||
CurrentTrackIndex = _opticalDiscs[CurrentDisc].CurrentTrackIndex;
|
CurrentTrackIndex = _opticalDiscs[CurrentDisc].CurrentTrackIndex;
|
||||||
|
|||||||
Reference in New Issue
Block a user