Fixed issue that in some cases not all changed settings for all extruders were shown

CURA-3221
This commit is contained in:
Jaime van Kessel 2017-03-01 11:35:06 +01:00
parent a1281bc019
commit 1ba8ee2051

View File

@ -38,11 +38,7 @@ class UserChangesModel(ListModel):
def _update(self): def _update(self):
items = [] items = []
global_stack = Application.getInstance().getGlobalContainerStack() global_stack = Application.getInstance().getGlobalContainerStack()
stacks = ExtruderManager.getInstance().getUsedExtruderStacks() stacks = ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks()
# Ensure that the global stack is in the list of stacks.
if global_stack.getProperty("machine_extruder_count", "value") > 1:
stacks.append(global_stack)
# Check if the definition container has a translation file and ensure it's loaded. # Check if the definition container has a translation file and ensure it's loaded.
definition = global_stack.getBottom() definition = global_stack.getBottom()