mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 06:03:57 -06:00
Filter certain settings based on stack type in profile tab
CURA-2214
This commit is contained in:
parent
821c915ce6
commit
f85f7cb62c
1 changed files with 8 additions and 0 deletions
|
@ -169,6 +169,14 @@ 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 a setting is global (not settable per extruder) and we're looking at an extruder stack, ignore this value.
|
||||||
|
if not UM.Application.getInstance().getGlobalContainerStack().getProperty(definition.key, "settable_per_extruder") and self._extruder_id != "":
|
||||||
|
continue
|
||||||
|
|
||||||
|
# If a setting is settable per extruder and we're looking at global tab, ignore this value.
|
||||||
|
if self._extruder_id == "" and UM.Application.getInstance().getGlobalContainerStack().getProperty(definition.key, "settable_per_extruder"):
|
||||||
|
continue
|
||||||
|
|
||||||
self.appendItem({
|
self.appendItem({
|
||||||
"key": definition.key,
|
"key": definition.key,
|
||||||
"label": definition.label,
|
"label": definition.label,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue