mirror of
https://github.com/aaru-dps/RedBookPlayer.git
synced 2025-12-16 19:24:41 +00:00
Disconnect volume from Init
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user