mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Clear comment on reset after successful publish
This commit is contained in:
parent
6ed4497444
commit
ece0d0cdcd
1 changed files with 7 additions and 1 deletions
|
|
@ -229,7 +229,13 @@ class Controller(QtCore.QObject):
|
|||
self.log.debug("Resetting pyblish context object")
|
||||
|
||||
comment = None
|
||||
if self.context is not None and self.context.data.get("comment"):
|
||||
if (
|
||||
self.context is not None and
|
||||
self.context.data.get("comment") and
|
||||
# We only preserve the user typed comment if we are *not*
|
||||
# resetting from a successful publish without errors
|
||||
self._current_state != "Published"
|
||||
):
|
||||
comment = self.context.data["comment"]
|
||||
|
||||
self.context = pyblish.api.Context()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue