A small fix for the case when Cura is starting up and there is no printer.

CURA-2271 Warn for unsupported material/printcore combinations
This commit is contained in:
Simon Edwards 2016-10-13 11:10:40 +02:00
parent f659d01da1
commit f7fe59c707
2 changed files with 6 additions and 4 deletions

View file

@ -32,6 +32,7 @@ class ProfilesModel(InstanceContainersModel):
extruder_manager = ExtruderManager.getInstance()
active_extruder = extruder_manager.getActiveExtruderStack()
extruder_stacks = extruder_manager.getActiveExtruderStacks()
if active_extruder in extruder_stacks:
extruder_stacks.remove(active_extruder)
extruder_stacks = [active_extruder] + extruder_stacks

View file

@ -29,6 +29,7 @@ class QualityAndUserProfilesModel(ProfilesModel):
extruder_manager = ExtruderManager.getInstance()
active_extruder = extruder_manager.getActiveExtruderStack()
extruder_stacks = extruder_manager.getActiveExtruderStacks()
if active_extruder in extruder_stacks:
extruder_stacks.remove(active_extruder)
extruder_stacks = [active_extruder] + extruder_stacks