tweak(tasklist): Extend limit to 200.
This commit is contained in:
@@ -25,7 +25,7 @@ from .settings import TasklistSettings, TasklistConfigUI
|
||||
_p, _np = babel._p, babel._np
|
||||
|
||||
|
||||
MAX_LENGTH = 100
|
||||
MAX_LENGTH = 200
|
||||
|
||||
|
||||
class BeforeSelection(ChoicedEnum):
|
||||
|
||||
@@ -322,11 +322,11 @@ class Tasklist:
|
||||
content = match['content']
|
||||
if not content:
|
||||
continue
|
||||
if len(content) > 100:
|
||||
if len(content) > 200:
|
||||
raise UserInputError(
|
||||
t(_p(
|
||||
'modal:tasklist_bulk_editor|error:task_too_long',
|
||||
"Please keep your tasks under 100 characters!"
|
||||
"Please keep your tasks under 200 characters!"
|
||||
))
|
||||
)
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class TasklistCaller(LeoUI):
|
||||
class SingleEditor(FastModal):
|
||||
task: TextInput = TextInput(
|
||||
label='',
|
||||
max_length=100,
|
||||
max_length=200,
|
||||
required=True
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user