mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Use active quality(-changes) name when creating a new profile
CURA-2220
This commit is contained in:
parent
e79694178c
commit
b09e8bb1c9
1 changed files with 3 additions and 3 deletions
|
@ -427,14 +427,14 @@ class ContainerManager(QObject):
|
||||||
if not global_stack:
|
if not global_stack:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
quality_container = global_stack.findContainer(type = "quality")
|
active_quality_name = UM.Application.getInstance().getMachineManager().activeQualityName
|
||||||
if not quality_container:
|
if active_quality_name == "":
|
||||||
UM.Logger.log("w", "No quality container found in stack %s, cannot create profile", global_stack.getId())
|
UM.Logger.log("w", "No quality container found in stack %s, cannot create profile", global_stack.getId())
|
||||||
return False
|
return False
|
||||||
|
|
||||||
UM.Application.getInstance().getMachineManager().blurSettings.emit()
|
UM.Application.getInstance().getMachineManager().blurSettings.emit()
|
||||||
|
|
||||||
unique_name = UM.Settings.ContainerRegistry.getInstance().uniqueName(quality_container.getName())
|
unique_name = UM.Settings.ContainerRegistry.getInstance().uniqueName(active_quality_name)
|
||||||
|
|
||||||
# Go through the active stacks and create quality_changes containers from the user containers.
|
# Go through the active stacks and create quality_changes containers from the user containers.
|
||||||
for stack in cura.Settings.ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks():
|
for stack in cura.Settings.ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue