From a3ed385259c03f1a950c85cd5f9f8e6e72fae27f Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Fri, 2 Feb 2018 14:47:14 +0100 Subject: [PATCH] Use global_stack.definition.getId() to determine machine type CURA-4891 --- cura/PrintInformation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/PrintInformation.py b/cura/PrintInformation.py index 47f59c4cad..cfd1e3fd3b 100644 --- a/cura/PrintInformation.py +++ b/cura/PrintInformation.py @@ -362,10 +362,10 @@ class PrintInformation(QObject): if not global_container_stack: self._abbr_machine = "" return - active_machine_id = Preferences.getInstance().getValue("cura/active_machine") + active_machine_type_id = global_container_stack.definition.getId() abbr_machine = "" - for word in re.findall(r"[\w']+", active_machine_id): + for word in re.findall(r"[\w']+", active_machine_type_id): if word.lower() == "ultimaker": abbr_machine += "UM" elif word.isdigit():