Commit 3e0146f9 authored by AUTOMATIC1111's avatar AUTOMATIC1111

restore the lost Uncategorized options section

parent edc56202
...@@ -240,6 +240,9 @@ class Options: ...@@ -240,6 +240,9 @@ class Options:
item_categories = {} item_categories = {}
for item in self.data_labels.values(): for item in self.data_labels.values():
if item.section[0] is None:
continue
category = categories.mapping.get(item.category_id) category = categories.mapping.get(item.category_id)
category = "Uncategorized" if category is None else category.label category = "Uncategorized" if category is None else category.label
if category not in item_categories: if category not in item_categories:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment