diff options
author | sr55 <[email protected]> | 2019-11-25 21:18:14 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-11-25 21:18:45 +0000 |
commit | 1b71cb5c6240f7f2eea4d99f9c5d964611ad1499 (patch) | |
tree | a5a9f9d0bcd97ad0ccabc5f450db08beb1cbea30 /win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs | |
parent | 51da3e2d134f0937162e627e658146bc3fbda1e4 (diff) |
WinGui: Fix a bug in the Add presets window where the Audio / Subtitle defaults would not set. Fixes #2457
(cherry picked from commit a5d359d79f28924fd0a57603793d6aa57499c49a)
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs index ab49f09c2..d2c5f9452 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs @@ -307,7 +307,9 @@ namespace HandBrakeWPF.ViewModels /// </summary>
public void EditAudioDefaults()
{
- if (this.windowManager.ShowDialog(this.audioDefaultsViewModel) == true)
+ this.audioDefaultsViewModel.ResetApplied();
+ bool? result = this.windowManager.ShowDialog(this.audioDefaultsViewModel);
+ if (audioDefaultsViewModel.IsApplied)
{
this.Preset.AudioTrackBehaviours = this.audioDefaultsViewModel.AudioBehaviours.Clone();
}
@@ -318,10 +320,12 @@ namespace HandBrakeWPF.ViewModels /// </summary>
public void EditSubtitleDefaults()
{
+ this.subtitlesDefaultsViewModel.ResetApplied();
SubtitlesDefaultsView view = new SubtitlesDefaultsView();
view.DataContext = this.subtitlesDefaultsViewModel;
+ view.ShowDialog();
- if (view.ShowDialog() == true)
+ if (subtitlesDefaultsViewModel.IsApplied)
{
this.Preset.SubtitleTrackBehaviours = this.subtitlesDefaultsViewModel.SubtitleBehaviours.Clone();
}
|