From 4a69d9887ff849673c21d2807afafb4c9f8fcb7d Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 31 Jan 2016 17:45:19 +0000 Subject: WinGui: Fix for configure audio tracks not behaving correctly with "Any" option. --- win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'win/CS') diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs index 0966b18fd..05a904d5f 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs @@ -582,7 +582,7 @@ namespace HandBrakeWPF.ViewModels /// private void AddFirstForSelectedLanguages() { - foreach (Audio sourceTrack in this.GetSelectedLanguagesTracks()) + foreach (Audio sourceTrack in this.GetSelectedLanguagesTracks(false)) { // Step 2: Check if the track list already contrains this track bool found = this.Task.AudioTracks.Any(audioTrack => Equals(audioTrack.ScannedTrack, sourceTrack)); @@ -612,7 +612,7 @@ namespace HandBrakeWPF.ViewModels public void AddAllRemainingForSelectedLanguages() { // Add them if they are not already added. - foreach (Audio sourceTrack in this.GetSelectedLanguagesTracks()) + foreach (Audio sourceTrack in this.GetSelectedLanguagesTracks(true)) { // Step 2: Check if the track list already contrains this track bool found = this.Task.AudioTracks.Any(audioTrack => Equals(audioTrack.ScannedTrack, sourceTrack)); @@ -650,17 +650,22 @@ namespace HandBrakeWPF.ViewModels /// /// Gets a list of source tracks for the users selected languages. /// + /// + /// The include Any. + /// /// /// A list of source audio tracks. /// - private IEnumerable