mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
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
This commit is contained in:
parent
94d0725b11
commit
f99550a74e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue