Merge pull request #1940 from inkstitch/george-steel/expose-trim-after

expose the trim_after param in the interface
pull/1955/head
George Steel 2022-12-11 12:02:52 -05:00 zatwierdzone przez GitHub
commit de55286b22
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 13 dodań i 0 usunięć

1
.gitignore vendored
Wyświetl plik

@ -23,3 +23,4 @@ locales/
/profile_stats
/profile_stats.prof
/.vscode
__pycache__

Wyświetl plik

@ -342,10 +342,22 @@ class EmbroideryElement(object):
return self.strip_control_points(path[0])
@property
@param('trim_after',
_ ('Trim After'),
tooltip=_('Add a TRIM command after stitching this object.'),
type='boolean',
default=False,
sort_index=52)
def trim_after(self):
return self.get_boolean_param('trim_after', False)
@property
@param('stop_after',
_ ('Stop After'),
tooltip=_('Add a STOP command after stitching this object.'),
type='boolean',
default=False,
sort_index=53)
def stop_after(self):
return self.get_boolean_param('stop_after', False)