mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
CURA-4400 first version that disables extruder and updates available quality profiles
This commit is contained in:
parent
7507ba10a9
commit
86c13e86c7
8 changed files with 54 additions and 15 deletions
|
|
@ -237,9 +237,9 @@ class QualityManager(QObject):
|
|||
# Updates the given quality groups' availabilities according to which extruders are being used/ enabled.
|
||||
def _updateQualityGroupsAvailability(self, machine: "GlobalStack", quality_group_list):
|
||||
used_extruders = set()
|
||||
# TODO: This will change after the Machine refactoring
|
||||
for i in range(machine.getProperty("machine_extruder_count", "value")):
|
||||
used_extruders.add(str(i))
|
||||
if machine.extruders[str(i)].isEnabled:
|
||||
used_extruders.add(str(i))
|
||||
|
||||
# Update the "is_available" flag for each quality group.
|
||||
for quality_group in quality_group_list:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue