mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
changed "label" key to "instance_label"
This commit is contained in:
parent
8aaa53cc66
commit
047a31cdbc
2 changed files with 5 additions and 7 deletions
|
|
@ -895,13 +895,13 @@ class PublisherController:
|
|||
if instance.data.get("publish") is False:
|
||||
continue
|
||||
|
||||
label = (
|
||||
instance_label = (
|
||||
instance.data.get("label")
|
||||
or instance.data["name"]
|
||||
)
|
||||
self._emit_event(
|
||||
"publish.process.instance.changed",
|
||||
{"label": label}
|
||||
{"instance_label": instance_label}
|
||||
)
|
||||
|
||||
yield MainThreadItem(
|
||||
|
|
@ -915,14 +915,14 @@ class PublisherController:
|
|||
[plugin], families
|
||||
)
|
||||
if plugins:
|
||||
label = (
|
||||
instance_label = (
|
||||
self._publish_context.data.get("label")
|
||||
or self._publish_context.data.get("name")
|
||||
or "Context"
|
||||
)
|
||||
self._emit_event(
|
||||
"publish.process.instance.changed",
|
||||
{"label": label}
|
||||
{"instance_label": instance_label}
|
||||
)
|
||||
yield MainThreadItem(
|
||||
self._process_and_continue, plugin, None
|
||||
|
|
|
|||
|
|
@ -321,9 +321,7 @@ class PublishFrame(QtWidgets.QWidget):
|
|||
def _on_instance_change(self, event):
|
||||
"""Change instance label when instance is going to be processed."""
|
||||
|
||||
label = event["label"]
|
||||
|
||||
self._instance_label.setText(label)
|
||||
self._instance_label.setText(event["instance_label"])
|
||||
QtWidgets.QApplication.processEvents()
|
||||
|
||||
def _on_plugin_change(self, event):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue