summaryrefslogtreecommitdiff
path: root/lib/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions')
-rw-r--r--lib/extensions/base.py4
-rwxr-xr-xlib/extensions/sew_stack_editor.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/extensions/base.py b/lib/extensions/base.py
index 4a2895d0..91afbc38 100644
--- a/lib/extensions/base.py
+++ b/lib/extensions/base.py
@@ -18,6 +18,10 @@ from ..update import update_inkstitch_document
class InkstitchExtension(inkex.EffectExtension):
"""Base class for Inkstitch extensions. Not intended for direct use."""
+ # Set to True to hide this extension from release builds of Ink/Stitch. It will
+ # only be available in development installations.
+ DEVELOPMENT_ONLY = False
+
def load(self, *args, **kwargs):
document = super().load(*args, **kwargs)
update_inkstitch_document(document)
diff --git a/lib/extensions/sew_stack_editor.py b/lib/extensions/sew_stack_editor.py
index 6c7cb543..a7cc9e38 100755
--- a/lib/extensions/sew_stack_editor.py
+++ b/lib/extensions/sew_stack_editor.py
@@ -531,6 +531,8 @@ class SewStackPanel(wx.Panel):
class SewStackEditor(InkstitchExtension):
+ DEVELOPMENT_ONLY = True
+
def __init__(self, *args, **kwargs):
self.cancelled = False
InkstitchExtension.__init__(self, *args, **kwargs)