Disconnect volume from Init

This commit is contained in:
Matt Nadareski
2021-10-08 23:16:02 -07:00
parent 27480a9e69
commit 09f9b2d775
3 changed files with 17 additions and 26 deletions

View File

@@ -398,6 +398,8 @@ namespace RedBookPlayer.GUI.ViewModels
// Initialize Player
_player = new Player(App.Settings.NumberOfDiscs, App.Settings.Volume);
_player.PropertyChanged += PlayerStateChanged;
PlayerStateChanged(this, null);
PlayerState = PlayerState.NoDisc;
}
@@ -417,10 +419,7 @@ namespace RedBookPlayer.GUI.ViewModels
// Attempt to initialize Player
_player.Init(path, playerOptions, opticalDiscOptions, autoPlay);
if(_player.Initialized)
{
_player.PropertyChanged += PlayerStateChanged;
PlayerStateChanged(this, null);
}
}
#region Playback (UI)