From 96e2f705a48ed96db9172203ade1c6ab30937dde Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 25 Jul 2016 20:29:44 +0100 Subject: WinGui: Lay the foundation for editing presets with a simple rename window. --- win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'win/CS/HandBrakeWPF/Services/Presets/PresetService.cs') 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 @@ -253,6 +253,15 @@ namespace HandBrakeWPF.Services.Presets } } + /// + /// Replace an existing preset with a modified one. + /// + public void Replace(Preset existing, Preset replacement) + { + this.Remove(existing); + this.Add(replacement); + } + /// /// Remove a preset with a given name from either the built in or user preset list. /// -- cgit v1.2.3