diff options
author | sr55 <[email protected]> | 2014-02-22 17:10:47 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-02-22 17:10:47 +0000 |
commit | 257b3cc03cb5dc4cf1c2006dd14282cd2ff904d5 (patch) | |
tree | 1e83af5e7eae55c2f129dc58a1094bbc66ae04de /win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | |
parent | 98d752774490f3d15107fa1bb9f69ccedeaa2a53 (diff) |
WinGui: Further work on the new Audio and Subtitle automatic behaviour system.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6060 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index aa60adf68..d9c2640f8 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -23,7 +23,9 @@ namespace HandBrakeWPF.ViewModels using HandBrake.ApplicationServices.Factories;
using HandBrake.ApplicationServices.Model;
+ using HandBrake.ApplicationServices.Model.Audio;
using HandBrake.ApplicationServices.Model.Encoding;
+ using HandBrake.ApplicationServices.Model.Subtitle;
using HandBrake.ApplicationServices.Parsing;
using HandBrake.ApplicationServices.Services.Interfaces;
using HandBrake.ApplicationServices.Utilities;
@@ -1495,7 +1497,7 @@ namespace HandBrakeWPF.ViewModels if (this.errorService.ShowMessageBox(Resources.Main_PresetUpdateConfrimation, Resources.AreYouSure, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
{
- this.SelectedPreset.Task = new EncodeTask(this.CurrentTask);
+ this.SelectedPreset.Update(new EncodeTask(this.CurrentTask), new AudioBehaviours(this.AudioViewModel.AudioBehaviours), new SubtitleBehaviours(this.SubtitleViewModel.SubtitleBehaviours));
this.presetService.Update(this.SelectedPreset);
this.errorService.ShowMessageBox(
|