summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-06-30 21:05:09 +0100
committersr55 <[email protected]>2020-06-30 21:05:09 +0100
commit4d5798c812a1caa4d3fdf0f6c505a9d612d33837 (patch)
tree04c20cdd2952efe725aa2ecbecf16e05e2fd2832 /win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
parent2e6809f9c3b7cda87269e4e6902138d42da95569 (diff)
WinGui: Presets UI overhaul.
- Remove the deprecated side panel. The in-line preset selector is now always shown in it's place. This frees up significant horizontal space for upcoming enhancements. - The toolbar "Presets" button now launches a new preset manager. Same design language as the Queue window allowing for better management of presets. -- Add option to delete all built-in presets. #2963 This is considered an experimental design for now. It may or may not change.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets/PresetService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/PresetService.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
index c34ca617f..4bb53eced 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
@@ -67,6 +67,8 @@ namespace HandBrakeWPF.Services.Presets
}
}
+ public List<Preset> FlatPresetList => this.flatPresetList.ToList();
+
public Preset DefaultPreset
{
get
@@ -491,6 +493,11 @@ namespace HandBrakeWPF.Services.Presets
return categoriesList;
}
+ public void Save()
+ {
+ this.SavePresetFiles();
+ }
+
private string ArchivePresetFile(string file, bool delete)
{
try