summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-12-13 21:18:42 +0000
committersr55 <[email protected]>2017-12-13 21:18:42 +0000
commit91bd97fb5525b686ec3b52978655ede2b56978f4 (patch)
treedcd91c9bdb1ca5ac0dc708e6ad31a994a1bf78ac /win
parentcbe743cb97092986993a5fe5febbfc64c5779625 (diff)
WinGui: Finish off modification detection
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs11
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs6
2 files changed, 7 insertions, 10 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
index 643daaccc..cf1ea6d3c 100644
--- a/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/AudioViewModel.cs
@@ -220,11 +220,7 @@ namespace HandBrakeWPF.ViewModels
IPopupWindowViewModel popup = new PopupWindowViewModel(this.AudioDefaultsViewModel, ResourcesUI.Preset_AudioDefaults_Title, ResourcesUI.AudioView_AudioDefaultsDescription);
if (this.windowManager.ShowDialog(popup) == true)
{
- // Nothing to do yet, it's by reference.
- }
- else
- {
- // Handle other case(s)
+ this.OnTabStatusChanged(null);
}
}
@@ -350,6 +346,11 @@ namespace HandBrakeWPF.ViewModels
return false;
}
+ if (preset.AudioTrackBehaviours.BehaviourTracks.Count != this.AudioBehaviours.BehaviourTracks.Count)
+ {
+ return false;
+ }
+
return true;
}
diff --git a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs
index f1753aeed..c05fda5e5 100644
--- a/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/SubtitlesViewModel.cs
@@ -428,11 +428,7 @@ namespace HandBrakeWPF.ViewModels
IPopupWindowViewModel popup = new PopupWindowViewModel(this.SubtitleDefaultsViewModel, ResourcesUI.Preset_SubtitleDefaults_Title, ResourcesUI.SubtitleView_SubtitleDefaultsDescription);
if (this.windowManager.ShowDialog(popup) == true)
{
- // Nothing to do yet, it's by reference.
- }
- else
- {
- // Handle other case(s)
+ this.OnTabStatusChanged(null);
}
}