mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
fixed resetting in controller
This commit is contained in:
parent
9f23cd0230
commit
0b3eba2a94
1 changed files with 3 additions and 4 deletions
|
|
@ -134,6 +134,8 @@ class PublisherController:
|
|||
self._publish_validation_errors = []
|
||||
# Any other exception that happened during publishing
|
||||
self._publish_error = None
|
||||
# Publishing is in progress
|
||||
self._publish_is_running = False
|
||||
# Publishing is over validation order
|
||||
self._publish_validated = False
|
||||
# Publishing should stop at validation stage
|
||||
|
|
@ -273,6 +275,7 @@ class PublisherController:
|
|||
callbacks.remove(ref)
|
||||
|
||||
def reset(self):
|
||||
self.stop_publish()
|
||||
self._reset_plugins()
|
||||
# Publish part must be resetted after plugins
|
||||
self._reset_publish()
|
||||
|
|
@ -455,10 +458,6 @@ class PublisherController:
|
|||
if self._publish_is_running:
|
||||
self._stop_publish()
|
||||
|
||||
def reset_publish(self):
|
||||
self.stop_publish()
|
||||
self._reset_publish()
|
||||
|
||||
def _publish_next_process(self):
|
||||
# Validations of progress before using iterator
|
||||
# - same conditions may be inside iterator but they may be used
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue