diff options
author | sr55 <[email protected]> | 2021-04-03 14:50:31 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2021-04-03 14:50:40 +0100 |
commit | e121169f05bc550fc8733045a5261b820abf80cd (patch) | |
tree | 9fc6c43bd0e7c04c177ec59e45fb4fd72a623411 | |
parent | 22752ef5fd397784875153d4efb9282020298361 (diff) |
WinGui: Fix an issue that blocked preset imports. Fixes #3523
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Presets/PresetService.cs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs index 35d3ab440..17c174e65 100644 --- a/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs +++ b/win/CS/HandBrakeWPF/Services/Presets/PresetService.cs @@ -157,11 +157,6 @@ namespace HandBrakeWPF.Services.Presets foreach (var objectPreset in container.PresetList)
{
HBPresetCategory category = JsonSerializer.Deserialize<HBPresetCategory>(objectPreset.ToString(), JsonSettings.Options);
- if (category == null || category.ChildrenArray == null || category.ChildrenArray.Count == 0)
- {
- continue; // Ignore empty preset categories.
- }
-
if (category != null && category.ChildrenArray != null && category.ChildrenArray.Count > 0)
{
foreach (HBPreset hbPreset in category.ChildrenArray)
|