From f6c2aa89197c82cedfb31465fc4b2acffaeb8f25 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 5 Feb 2023 22:33:38 -0500 Subject: add more check_stop_flag() calls --- lib/extensions/lettering.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/extensions') diff --git a/lib/extensions/lettering.py b/lib/extensions/lettering.py index 0d18449a..c997e201 100644 --- a/lib/extensions/lettering.py +++ b/lib/extensions/lettering.py @@ -24,6 +24,7 @@ from ..svg.tags import (INKSCAPE_LABEL, INKSTITCH_LETTERING, SVG_GROUP_TAG, from ..utils import DotDict, cache, get_bundled_dir, get_resource_dir from .commands import CommandsExtension from .lettering_custom_font_dir import get_custom_font_dir +from ..utils.threading import ExitThread class LetteringFrame(wx.Frame): @@ -344,6 +345,8 @@ class LetteringFrame(wx.Frame): patches.extend(element.embroider(None)) except SystemExit: raise + except ExitThread: + raise except Exception: raise # Ignore errors. This can be things like incorrect paths for -- cgit v1.2.3