mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 01:15:55 +08:00
Use active quality(-changes) name when creating a new profile
CURA-2220
This commit is contained in:
parent
e79694178c
commit
b09e8bb1c9
@ -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…
x
Reference in New Issue
Block a user