mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 12:45:55 +08:00
Restore profiles overview for single extrusion printers
CURA-2214
This commit is contained in:
parent
5cd3cfca45
commit
82f6f20bc1
@ -148,6 +148,8 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
|||||||
containers.extend(changes)
|
containers.extend(changes)
|
||||||
|
|
||||||
global_container_stack = UM.Application.getInstance().getGlobalContainerStack()
|
global_container_stack = UM.Application.getInstance().getGlobalContainerStack()
|
||||||
|
is_multi_extrusion = global_container_stack.getProperty("machine_extruder_count", "value") > 1
|
||||||
|
|
||||||
current_category = ""
|
current_category = ""
|
||||||
for definition in definition_container.findDefinitions():
|
for definition in definition_container.findDefinitions():
|
||||||
if definition.type == "category":
|
if definition.type == "category":
|
||||||
@ -171,6 +173,7 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
|||||||
if not profile_value and not user_value:
|
if not profile_value and not user_value:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if is_multi_extrusion:
|
||||||
settable_per_extruder = global_container_stack.getProperty(definition.key, "settable_per_extruder")
|
settable_per_extruder = global_container_stack.getProperty(definition.key, "settable_per_extruder")
|
||||||
# If a setting is not settable per extruder (global) and we're looking at an extruder tab, don't show this value.
|
# If a setting is not settable per extruder (global) and we're looking at an extruder tab, don't show this value.
|
||||||
if self._extruder_id != "" and not settable_per_extruder:
|
if self._extruder_id != "" and not settable_per_extruder:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user