diff options
author | sr55 <[email protected]> | 2016-06-27 20:39:49 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2016-06-27 20:39:49 +0100 |
commit | 04efd7107f8fc6a9667d87afc531d947657c4d55 (patch) | |
tree | 6b06bf7ff74d5df736b8b9c96b922aa486659df3 /win | |
parent | b9e7a2ab2056bf09df433c7c52b00e7b1bb103f3 (diff) |
WinGui: Some behavioural fixes to the Audio Defaults when loading and saving presets.
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs | 4 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs index 70de20c67..ec757034b 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioDefaultsViewModel.cs @@ -476,8 +476,10 @@ namespace HandBrakeWPF.ViewModels foreach (AudioBehaviourTrack item in preset.AudioTrackBehaviours.BehaviourTracks) { - this.AudioBehaviours.BehaviourTracks.Add(new AudioBehaviourTrack(item)); + this.BehaviourTracks.Add(new AudioBehaviourTrack(item)); } + + this.NotifyOfPropertyChange(() => this.BehaviourTracks); foreach (string selectedItem in behaviours.SelectedLangauges) { diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs index 2706e8e83..7c7c3df3c 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs @@ -394,7 +394,7 @@ namespace HandBrakeWPF.ViewModels }
// Step 3, Setup the tracks from the preset
- foreach (AudioBehaviourTrack track in this.currentPreset.AudioTrackBehaviours.BehaviourTracks)
+ foreach (AudioBehaviourTrack track in this.AudioBehaviours.BehaviourTracks)
{
this.Task.AudioTracks.Add(new AudioTrack(track) { ScannedTrack = this.GetPreferredAudioTrack() });
}
|