From d18e2622b72d5ad592b81880b244ad930228a7cc Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Thu, 22 May 2025 23:15:40 +0200 Subject: [PATCH] Rename to `_validate_comment` --- client/ayon_core/tools/publisher/window.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/ayon_core/tools/publisher/window.py b/client/ayon_core/tools/publisher/window.py index 6c856d8c3a..13d98a5398 100644 --- a/client/ayon_core/tools/publisher/window.py +++ b/client/ayon_core/tools/publisher/window.py @@ -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: