summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs44
1 files changed, 42 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 2f3a67ccb..5eb792abb 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -357,8 +357,8 @@ namespace HandBrakeWPF.ViewModels
if (this.SelectedPreset != null)
{
// Main Window Settings
- this.CurrentTask.OptimizeMP4 = selectedPreset.Task.OptimizeMP4;
- this.CurrentTask.IPod5GSupport = selectedPreset.Task.IPod5GSupport;
+ this.OptimizeMP4 = selectedPreset.Task.OptimizeMP4;
+ this.IPod5GSupport = selectedPreset.Task.IPod5GSupport;
this.SelectedOutputFormat = selectedPreset.Task.OutputFormat;
// Tab Settings
@@ -379,6 +379,46 @@ namespace HandBrakeWPF.ViewModels
}
/// <summary>
+ /// Optimise MP4 Checkbox
+ /// </summary>
+ public bool OptimizeMP4
+ {
+ get
+ {
+ return this.CurrentTask.OptimizeMP4;
+ }
+ set
+ {
+ if (value == this.CurrentTask.OptimizeMP4)
+ {
+ return;
+ }
+ this.CurrentTask.OptimizeMP4 = value;
+ this.NotifyOfPropertyChange(() => this.OptimizeMP4);
+ }
+ }
+
+ /// <summary>
+ /// iPod 5G Status
+ /// </summary>
+ public bool IPod5GSupport
+ {
+ get
+ {
+ return this.CurrentTask.IPod5GSupport;
+ }
+ set
+ {
+ if (value == this.CurrentTask.IPod5GSupport)
+ {
+ return;
+ }
+ this.CurrentTask.IPod5GSupport = value;
+ this.NotifyOfPropertyChange(() => this.IPod5GSupport);
+ }
+ }
+
+ /// <summary>
/// Gets or sets The Current Encode Task that the user is building
/// </summary>
public EncodeTask CurrentTask { get; set; }