summaryrefslogtreecommitdiff
path: root/lib/elements/element.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-06-20 16:56:00 +0200
committerGitHub <noreply@github.com>2024-06-20 16:56:00 +0200
commitc017cae01aa33a876795ec5da1438e8ec0f11fc5 (patch)
treeace90dd7c09b6bbddd53cf4b351cb55ef56f42c0 /lib/elements/element.py
parentc030e3283530bc1d0f4bad219f4c61db22750506 (diff)
gray out randomize stitch length param when random stitch length is disabled (#3002)
Diffstat (limited to 'lib/elements/element.py')
-rw-r--r--lib/elements/element.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py
index 5c463c53..4ce47c79 100644
--- a/lib/elements/element.py
+++ b/lib/elements/element.py
@@ -27,7 +27,7 @@ from ..utils.cache import get_stitch_plan_cache, is_cache_disabled, CacheKeyGene
class Param(object):
def __init__(self, name, description, unit=None, values=[], type=None, group=None, inverse=False,
- options=[], default=None, tooltip=None, sort_index=0, select_items=None):
+ options=[], default=None, tooltip=None, sort_index=0, select_items=None, enables=None):
self.name = name
self.description = description
self.unit = unit
@@ -40,6 +40,7 @@ class Param(object):
self.tooltip = tooltip
self.sort_index = sort_index
self.select_items = select_items
+ self.enables = enables
def __repr__(self):
return "Param(%s)" % vars(self)