summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2016-07-25 20:29:44 +0100
committersr55 <[email protected]>2016-07-25 20:29:44 +0100
commit96e2f705a48ed96db9172203ade1c6ab30937dde (patch)
tree1aa4554abf2ee1beedf7dfa7e94070b8a96305d3 /win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
parent1903ac850ad0374b765ef3a058570a4bec067115 (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.cs9
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">