Addon Manager: Add <bundle> and <other>

This commit is contained in:
Chris Hennes
2025-02-22 22:03:32 -06:00
parent b021e39c54
commit 61c02090be
11 changed files with 109 additions and 23 deletions

View File

@@ -71,6 +71,8 @@ class AddContent:
self.dialog.addonKindComboBox.setItemData(0, "macro")
self.dialog.addonKindComboBox.setItemData(1, "preferencepack")
self.dialog.addonKindComboBox.setItemData(2, "workbench")
self.dialog.addonKindComboBox.setItemData(3, "bundle")
self.dialog.addonKindComboBox.setItemData(4, "other")
self.people_table = PeopleTable()
self.licenses_table = LicensesTable()
@@ -148,6 +150,8 @@ class AddContent:
self.dialog.macroFileLineEdit.setText(files[0])
elif addon_kind == "preferencepack":
self.dialog.prefPackNameLineEdit.setText(self.metadata.Name)
elif addon_kind == "bundle" or addon_kind == "other":
pass
else:
raise RuntimeError("Invalid data found for selection")