tweak(tasklist): Extend limit to 200.

This commit is contained in:
2023-09-24 10:52:08 +03:00
parent ea4942ad3e
commit 57820039a0
3 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ from .settings import TasklistSettings, TasklistConfigUI
_p, _np = babel._p, babel._np _p, _np = babel._p, babel._np
MAX_LENGTH = 100 MAX_LENGTH = 200
class BeforeSelection(ChoicedEnum): class BeforeSelection(ChoicedEnum):

View File

@@ -322,11 +322,11 @@ class Tasklist:
content = match['content'] content = match['content']
if not content: if not content:
continue continue
if len(content) > 100: if len(content) > 200:
raise UserInputError( raise UserInputError(
t(_p( t(_p(
'modal:tasklist_bulk_editor|error:task_too_long', 'modal:tasklist_bulk_editor|error:task_too_long',
"Please keep your tasks under 100 characters!" "Please keep your tasks under 200 characters!"
)) ))
) )

View File

@@ -48,7 +48,7 @@ class TasklistCaller(LeoUI):
class SingleEditor(FastModal): class SingleEditor(FastModal):
task: TextInput = TextInput( task: TextInput = TextInput(
label='', label='',
max_length=100, max_length=200,
required=True required=True
) )