mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
hide validation widgets when publishing starts
This commit is contained in:
parent
c24397f7b4
commit
7b9f202c79
2 changed files with 17 additions and 1 deletions
|
|
@ -153,6 +153,8 @@ class PublishOverlayFrame(QtWidgets.QFrame):
|
|||
self.publish_btn.setEnabled(True)
|
||||
|
||||
def _on_publish_start(self):
|
||||
self.validation_errors_widget.set_errors([])
|
||||
|
||||
self._set_success_property(-1)
|
||||
self.main_label.setText("Publishing...")
|
||||
|
||||
|
|
|
|||
|
|
@ -97,14 +97,16 @@ class ValidationsWidget(QtWidgets.QWidget):
|
|||
|
||||
self._errors_widget = errors_widget
|
||||
self._errors_layout = errors_layout
|
||||
self._error_details_widget = error_details_widget
|
||||
self._error_details_input = error_details_input
|
||||
self._actions_widget = actions_widget
|
||||
self._actions_layout = actions_layout
|
||||
|
||||
self._title_widgets = {}
|
||||
self._error_info = {}
|
||||
self._previous_checked = None
|
||||
|
||||
def set_errors(self, errors):
|
||||
def clear(self):
|
||||
_old_title_widget = self._title_widgets
|
||||
self._title_widgets = {}
|
||||
self._error_info = {}
|
||||
|
|
@ -118,6 +120,18 @@ class ValidationsWidget(QtWidgets.QWidget):
|
|||
while self._actions_layout.count():
|
||||
self._actions_layout.takeAt(0)
|
||||
|
||||
self._error_details_widget.setVisible(False)
|
||||
self._errors_widget.setVisible(False)
|
||||
self._actions_widget.setVisible(False)
|
||||
|
||||
def set_errors(self, errors):
|
||||
self.clear()
|
||||
if not errors:
|
||||
return
|
||||
|
||||
self._error_details_widget.setVisible(True)
|
||||
self._errors_widget.setVisible(True)
|
||||
|
||||
errors_by_title = []
|
||||
for plugin_info in errors:
|
||||
titles = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue