Skip to content

Commit 94387b7

Browse files
committed
feat: if no description is specified, use the name
1 parent 502d104 commit 94387b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ntp_operator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _setup_options(self, options: NTPOptions) -> bool:
140140
else:
141141
self.report({'ERROR'}, f"{options.menu_id} is not a valid menu")
142142
return False
143-
return True
143+
return True
144144

145145
def _setup_addon_directories(self, context: Context, nt_var: str) -> bool:
146146
"""
@@ -1387,6 +1387,8 @@ def _create_manifest(self) -> None:
13871387

13881388
manifest.write(f"version = {version_to_manifest_str(self._version)}\n")
13891389
manifest.write(f"name = {str_to_py_str(self._name)}\n")
1390+
if self._description == "":
1391+
self._description = self._name
13901392
manifest.write(f"tagline = {str_to_py_str(self._description)}\n")
13911393
manifest.write(f"maintainer = {str_to_py_str(self._author_name)}\n")
13921394
manifest.write("type = \"add-on\"\n")

0 commit comments

Comments
 (0)