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
|
_p, _np = babel._p, babel._np
|
||||||
|
|
||||||
|
|
||||||
MAX_LENGTH = 100
|
MAX_LENGTH = 200
|
||||||
|
|
||||||
|
|
||||||
class BeforeSelection(ChoicedEnum):
|
class BeforeSelection(ChoicedEnum):
|
||||||
|
|||||||
@@ -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!"
|
||||||
))
|
))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user