Still store disabled extruders as a set

They should be unique anyway.

Contributes to issue CURA-5456.
This commit is contained in:
Ghostkeeper 2018-07-09 11:32:53 +02:00
parent 54b990c0bd
commit dec9d7cac6
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -227,7 +227,7 @@ class StartSliceJob(Job):
if has_model_with_disabled_extruders:
self.setResult(StartJobResult.ObjectsWithDisabledExtruder)
associated_disabled_extruders = [str(c) for c in sorted([int(p) + 1 for p in associated_disabled_extruders])]
associated_disabled_extruders = {str(c) for c in sorted([int(p) + 1 for p in associated_disabled_extruders])}
self.setMessage(", ".join(associated_disabled_extruders))
return