summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-12-12 21:38:59 +0000
committersr55 <[email protected]>2017-12-12 21:38:59 +0000
commit02bb7c53bf68e0ba64ccd221b3435b444abb744b (patch)
treedfae39db91e22795d26db21f2bc0e250109505cb /win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
parent462d4aa8d369266bbc8204148c6da85930893790 (diff)
WinGui: Initial Activation of the "modified" preset detection code. (Audio/Subtitle Tabs still to be done)
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs10
1 files changed, 9 insertions, 1 deletions
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;
}