mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Rename to _validate_comment
This commit is contained in:
parent
1500c1cc33
commit
d18e2622b7
1 changed files with 3 additions and 3 deletions
|
|
@ -830,16 +830,16 @@ class PublisherWindow(QtWidgets.QDialog):
|
|||
self._controller.set_comment(self._comment_input.text())
|
||||
|
||||
def _on_validate_clicked(self):
|
||||
if self._start_publish_preflight() and self._save_changes(False):
|
||||
if self._validate_comment() and self._save_changes(False):
|
||||
self._set_publish_comment()
|
||||
self._controller.validate()
|
||||
|
||||
def _on_publish_clicked(self):
|
||||
if self._start_publish_preflight() and self._save_changes(False):
|
||||
if self._validate_comment() and self._save_changes(False):
|
||||
self._set_publish_comment()
|
||||
self._controller.publish()
|
||||
|
||||
def _start_publish_preflight(self) -> bool:
|
||||
def _validate_comment(self) -> bool:
|
||||
# Validate comment length
|
||||
comment_def = self._controller.get_comment_def()
|
||||
if comment_def.minimum_chars_required:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue