mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
changed ui_creators to manual_creators
This commit is contained in:
parent
1549cf9b81
commit
73e07330aa
3 changed files with 10 additions and 9 deletions
|
|
@ -693,8 +693,8 @@ class CreateContext:
|
|||
self.creators = {}
|
||||
# Prepare categories of creators
|
||||
self.autocreators = {}
|
||||
# TODO rename 'ui_creators' to something more suitable
|
||||
self.ui_creators = {}
|
||||
# Manual creators
|
||||
self.manual_creators = {}
|
||||
|
||||
self.publish_discover_result = None
|
||||
self.publish_plugins = []
|
||||
|
|
@ -804,7 +804,7 @@ class CreateContext:
|
|||
# Discover and prepare creators
|
||||
creators = {}
|
||||
autocreators = {}
|
||||
ui_creators = {}
|
||||
manual_creators = {}
|
||||
for creator_class in avalon.api.discover(BaseCreator):
|
||||
if inspect.isabstract(creator_class):
|
||||
self.log.info(
|
||||
|
|
@ -823,10 +823,10 @@ class CreateContext:
|
|||
if isinstance(creator, AutoCreator):
|
||||
autocreators[creator_identifier] = creator
|
||||
elif isinstance(creator, Creator):
|
||||
ui_creators[creator_identifier] = creator
|
||||
manual_creators[creator_identifier] = creator
|
||||
|
||||
self.autocreators = autocreators
|
||||
self.ui_creators = ui_creators
|
||||
self.manual_creators = manual_creators
|
||||
|
||||
self.creators = creators
|
||||
|
||||
|
|
|
|||
|
|
@ -400,8 +400,9 @@ class PublisherController:
|
|||
return self.create_context.creators
|
||||
|
||||
@property
|
||||
def ui_creators(self):
|
||||
return self.create_context.ui_creators
|
||||
def manual_creators(self):
|
||||
"""Creators"""
|
||||
return self.create_context.manual_creators
|
||||
|
||||
@property
|
||||
def host_is_valid(self):
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@ class CreateDialog(QtWidgets.QDialog):
|
|||
|
||||
# Add new families
|
||||
new_creators = set()
|
||||
for identifier, creator in self.controller.ui_creators.items():
|
||||
for identifier, creator in self.controller.manual_creators.items():
|
||||
# TODO add details about creator
|
||||
new_creators.add(identifier)
|
||||
if identifier in existing_items:
|
||||
|
|
@ -375,7 +375,7 @@ class CreateDialog(QtWidgets.QDialog):
|
|||
if new_index.isValid():
|
||||
identifier = new_index.data(CREATOR_IDENTIFIER_ROLE)
|
||||
|
||||
creator = self.controller.ui_creators.get(identifier)
|
||||
creator = self.controller.manual_creators.get(identifier)
|
||||
|
||||
self.creator_description_widget.set_plugin(creator)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue