diff options
author | Scott <[email protected]> | 2015-09-05 17:33:19 +0100 |
---|---|---|
committer | Scott <[email protected]> | 2015-09-05 17:33:19 +0100 |
commit | 9546038a7d13f9623ea17330db16cd1cd25e13ff (patch) | |
tree | ed9e811dd6a7a381de76d0bb85ba01bad862a0f0 | |
parent | 85133c49d2dc34060159c8f9f16cd508bb9d08d2 (diff) |
WinGui: Fix a cosmetic issue with the VideoTune dropdown when setting presets which only have FastDecode.
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs index 47cc4f6a3..7e7cfa6c7 100644 --- a/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/VideoViewModel.cs @@ -899,7 +899,8 @@ namespace HandBrakeWPF.ViewModels this.VideoProfile = preset.Task.VideoProfile != null ? preset.Task.VideoProfile.Clone() : this.VideoProfiles.FirstOrDefault();
this.VideoPresetValue = preset.Task.VideoPreset != null ? this.VideoPresets.IndexOf(preset.Task.VideoPreset) : 0;
this.FastDecode = preset.Task.VideoTunes != null && preset.Task.VideoTunes.Contains(VideoTune.FastDecode);
- this.VideoTune = preset.Task.VideoTunes != null && preset.Task.VideoTunes.Any() ? preset.Task.VideoTunes.FirstOrDefault(t => !Equals(t, VideoTune.FastDecode)) : this.VideoTunes.FirstOrDefault();
+ this.VideoTune = (preset.Task.VideoTunes != null && preset.Task.VideoTunes.Any() ? preset.Task.VideoTunes.FirstOrDefault(t => !Equals(t, VideoTune.FastDecode)) : this.VideoTunes.FirstOrDefault())
+ ?? VideoTune.None;
}
}
|