diff options
author | sr55 <[email protected]> | 2016-07-25 20:29:44 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2016-07-25 20:29:44 +0100 |
commit | 96e2f705a48ed96db9172203ade1c6ab30937dde (patch) | |
tree | 1aa4554abf2ee1beedf7dfa7e94070b8a96305d3 /win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | |
parent | 1903ac850ad0374b765ef3a058570a4bec067115 (diff) |
WinGui: Lay the foundation for editing presets with a simple rename window.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets/PresetService.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs index 55915329b..6c4a48864 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs @@ -254,6 +254,15 @@ namespace HandBrakeWPF.Services.Presets }
/// <summary>
+ /// Replace an existing preset with a modified one.
+ /// </summary>
+ public void Replace(Preset existing, Preset replacement)
+ {
+ this.Remove(existing);
+ this.Add(replacement);
+ }
+
+ /// <summary>
/// Remove a preset with a given name from either the built in or user preset list.
/// </summary>
/// <param name="preset">
|