mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Restore profiles overview for single extrusion printers
CURA-2214
This commit is contained in:
parent
5cd3cfca45
commit
82f6f20bc1
1 changed files with 10 additions and 7 deletions
|
@ -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,14 +173,15 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
||||||
if not profile_value and not user_value:
|
if not profile_value and not user_value:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
settable_per_extruder = global_container_stack.getProperty(definition.key, "settable_per_extruder")
|
if is_multi_extrusion:
|
||||||
# If a setting is not settable per extruder (global) and we're looking at an extruder tab, don't show this value.
|
settable_per_extruder = global_container_stack.getProperty(definition.key, "settable_per_extruder")
|
||||||
if self._extruder_id != "" and not 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.
|
||||||
continue
|
if self._extruder_id != "" and not settable_per_extruder:
|
||||||
|
continue
|
||||||
|
|
||||||
# If a setting is settable per extruder (not global) and we're looking at global tab, don't show this value.
|
# If a setting is settable per extruder (not global) and we're looking at global tab, don't show this value.
|
||||||
if self._extruder_id == "" and settable_per_extruder:
|
if self._extruder_id == "" and settable_per_extruder:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
items.append({
|
items.append({
|
||||||
"key": definition.key,
|
"key": definition.key,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue