summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/MainViewModel.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/MainViewModel.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/MainViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs18
1 files changed, 12 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
index 9478680eb..fd65c9c67 100644
--- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs
@@ -2122,6 +2122,7 @@ namespace HandBrakeWPF.ViewModels
{
// Tab Settings
this.isSettingPreset = true;
+ this.IsModifiedPreset = false;
this.PictureSettingsViewModel.SetPreset(this.selectedPreset, this.CurrentTask);
this.VideoViewModel.SetPreset(this.selectedPreset, this.CurrentTask);
this.FiltersViewModel.SetPreset(this.selectedPreset, this.CurrentTask);
@@ -2268,6 +2269,16 @@ namespace HandBrakeWPF.ViewModels
bool matchesPreset = this.PictureSettingsViewModel.MatchesPreset(this.selectedPreset);
+ if (!this.SummaryViewModel.MatchesPreset(this.selectedPreset))
+ {
+ matchesPreset = false;
+ }
+
+ if (!this.PictureSettingsViewModel.MatchesPreset(this.selectedPreset))
+ {
+ matchesPreset = false;
+ }
+
if (!this.VideoViewModel.MatchesPreset(this.selectedPreset))
{
matchesPreset = false;
@@ -2303,12 +2314,7 @@ namespace HandBrakeWPF.ViewModels
matchesPreset = false;
}
- if (!this.SummaryViewModel.MatchesPreset(this.selectedPreset))
- {
- matchesPreset = false;
- }
-
- this.IsModifiedPreset = matchesPreset;
+ this.IsModifiedPreset = !matchesPreset;
}
/// <summary>