summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-09-08 22:14:26 +0100
committersr55 <[email protected]>2017-09-08 22:14:26 +0100
commite17f33293848a5f3a783f09377adc94ffedb0f44 (patch)
tree7e4e44df742d3f82c4ab142ee1a35073e7ac984a /win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
parentb2f2e30f942a917348703e28418be97595ad5e8d (diff)
WinGui: Implementing the new Preset design that does away with the legacy style preset pane and re-arranges parts of the main window for better process flow.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Presets/PresetService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/PresetService.cs33
1 files changed, 0 insertions, 33 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
index 14001040e..ea948344b 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs
@@ -543,39 +543,6 @@ namespace HandBrakeWPF.Services.Presets
selectedPreset.IsSelected = true;
}
- public void SaveCategoryStates()
- {
- StringCollection expandedPresets = new StringCollection();
- foreach (IPresetObject presetObject in this.presets)
- {
- PresetDisplayCategory category = presetObject as PresetDisplayCategory;
- if (category != null && category.IsExpanded)
- {
- expandedPresets.Add(category.Category);
- }
- }
-
- this.userSettingService.SetUserSetting(UserSettingConstants.PresetExpandedStateList, expandedPresets);
- }
-
- public void LoadCategoryStates()
- {
- StringCollection expandedPresets = this.userSettingService.GetUserSetting<StringCollection>(UserSettingConstants.PresetExpandedStateList);
- if (expandedPresets == null || expandedPresets.Count == 0)
- {
- return;
- }
-
- foreach (IPresetObject presetObject in this.presets)
- {
- PresetDisplayCategory category = presetObject as PresetDisplayCategory;
- if (category != null && expandedPresets.Contains(category.Category))
- {
- category.IsExpanded = true;
- }
- }
- }
-
#endregion
#region Private Helpers