command recognition (#2384)

pull/2389/head
Kaalleen 2023-06-23 06:34:30 +02:00 zatwierdzone przez GitHub
rodzic 53c7bdfb19
commit a68f6037a9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -88,6 +88,10 @@ class BaseCommand(object):
if self.command.startswith('inkstitch_'):
self.command = self.command[10:]
# It is possible that through copy paste or whatever user action a command is defined multiple times
# in the defs section. In this case the id will be altered with an additional number (e.g. inkstitch_trim-5)
# Let's make sure to remove the number part to recognize the command correctly
self.command = self.command.split("-")[0]
else:
raise CommandParseError("symbol is not an Ink/Stitch command")