Merge pull request #4346 from quadproduction/267-set-family-instances-in-create-plugin-by-alphabetical-order

Sort families by alphabetical order in the Create plugin
This commit is contained in:
Jakub Trllo 2023-01-19 11:05:33 +01:00 committed by GitHub
commit 4b0b6e6e02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,7 @@ class CreatorsModel(QtGui.QStandardItemModel):
item.setData(False, QtCore.Qt.ItemIsEnabled)
items.append(item)
items.sort(key=lambda item: item.text())
self.invisibleRootItem().appendRows(items)
def get_creator_by_id(self, item_id):