avoid setting provided_name if not in the json
This commit is contained in:
parent
5d9661cee5
commit
766321d746
@ -112,7 +112,7 @@ class AddonMeta:
|
||||
def addon_meta(dir_name: str, json_meta: Dict[str, Any]) -> AddonMeta:
|
||||
return AddonMeta(
|
||||
dir_name=dir_name,
|
||||
provided_name=json_meta.get("name", dir_name),
|
||||
provided_name=json_meta.get("name"),
|
||||
enabled=not json_meta.get("disabled"),
|
||||
installed_at=json_meta.get("mod", 0),
|
||||
conflicts=json_meta.get("conflicts", []),
|
||||
|
Loading…
Reference in New Issue
Block a user