From f99550a74e0870eb8dbf638cf5017adce8446bd5 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Thu, 22 May 2025 23:20:03 +0200 Subject: [PATCH] Count chars with the comment input stripped - so that e.g. solely spaces (or trailing/starting spaces) do not count to the minimal required characters --- client/ayon_core/tools/publisher/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_core/tools/publisher/window.py b/client/ayon_core/tools/publisher/window.py index 28c40d8b5a..ccc91e599f 100644 --- a/client/ayon_core/tools/publisher/window.py +++ b/client/ayon_core/tools/publisher/window.py @@ -842,7 +842,7 @@ class PublisherWindow(QtWidgets.QDialog): def _validate_comment(self) -> bool: # Validate comment length comment_def = self._controller.get_comment_def() - char_count = len(self._comment_input.text()) + char_count = len(self._comment_input.text().strip()) if ( comment_def.minimum_chars_required and char_count < comment_def.minimum_chars_required