diff options
author | sr55 <[email protected]> | 2021-03-31 14:20:42 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2021-03-31 14:20:42 +0100 |
commit | c2083f5a0698d429a9c01588f612fd343a22badf (patch) | |
tree | 1c1d94c5e8a57f87937106bf36e17ca7b2f0cb20 /win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs | |
parent | 34ae75303b0aa5f716a402d9d936e29900c2c9e3 (diff) |
WinGui: When adding a new preset, select it rather than displaying the current preset as modified.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs index fca980ca7..2c224f138 100644 --- a/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs @@ -12,6 +12,7 @@ namespace HandBrakeWPF.ViewModels using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
+ using System.Runtime.CompilerServices;
using System.Windows;
using Caliburn.Micro;
@@ -62,6 +63,8 @@ namespace HandBrakeWPF.ViewModels public Preset Preset { get; }
+ public string PresetName => this.Preset.Name;
+
public bool ShowCustomInputs
{
get => this.showCustomInputs;
@@ -270,12 +273,12 @@ namespace HandBrakeWPF.ViewModels public void Cancel()
{
- this.Close();
+ this.TryCloseAsync(false);
}
- public void Close()
+ private void Close()
{
- this.TryCloseAsync();
+ this.TryCloseAsync(true);
}
private void SetSelectedPictureSettingsResLimitMode()
|