From 02bb7c53bf68e0ba64ccd221b3435b444abb744b Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 12 Dec 2017 21:38:59 +0000 Subject: WinGui: Initial Activation of the "modified" preset detection code. (Audio/Subtitle Tabs still to be done) --- win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs index 9d04261b0..643daaccc 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs @@ -337,7 +337,15 @@ namespace HandBrakeWPF.ViewModels return false; } - if (preset.AudioTrackBehaviours.SelectedLangauges != this.AudioBehaviours.SelectedLangauges) + foreach (var language in preset.AudioTrackBehaviours.SelectedLangauges) + { + if (!this.AudioBehaviours.SelectedLangauges.Contains(language)) + { + return false; + } + } + + if (preset.AudioTrackBehaviours.SelectedLangauges.Count != this.AudioBehaviours.SelectedLangauges.Count) { return false; } -- cgit v1.2.3