Group intent and quality

Bit of an ugly hack. At later point in the code it is assumed the first element of the list is the main part and the remaining elements form the suffix. Intent and the profile form both the main part so these need to be grouped together.

Cura-9773
This commit is contained in:
c.lamboo 2022-11-25 16:48:06 +01:00
parent 76564f7bc4
commit 4fa024cd31

View file

@ -1639,10 +1639,10 @@ class MachineManager(QObject):
if result_map["custom_profile"] is not None:
string_parts.append(result_map["custom_profile"])
string_parts.append(result_map["profile"])
if result_map["intent_category"] is not "default":
string_parts.append(result_map["intent_name"])
string_parts.append(f"""{result_map["intent_name"]} - {result_map["profile"]}""")
else:
string_parts.append(result_map["profile"])
if result_map["layer_height"]:
string_parts.append(f"""{result_map["layer_height"]}mm""")