mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Add a selector for the intent profile
CURA-6534
This commit is contained in:
parent
2d8c19203e
commit
35ec70a3cf
5 changed files with 95 additions and 4 deletions
|
@ -93,7 +93,7 @@ class CuraContainerStack(ContainerStack):
|
|||
#
|
||||
# \param new_intent The new intent container. It is expected to have a "type" metadata entry with the value "intent".
|
||||
def setIntent(self, new_intent: InstanceContainer, postpone_emit: bool = False) -> None:
|
||||
self.replaceContainer(_ContainerIndexes.Quality, new_intent, postpone_emit=postpone_emit)
|
||||
self.replaceContainer(_ContainerIndexes.Intent, new_intent, postpone_emit=postpone_emit)
|
||||
|
||||
## Get the quality container.
|
||||
#
|
||||
|
|
|
@ -47,6 +47,7 @@ EMPTY_INTENT_CONTAINER_ID = "empty_intent"
|
|||
empty_intent_container = copy.deepcopy(empty_container)
|
||||
empty_intent_container.setMetaDataEntry("id", EMPTY_INTENT_CONTAINER_ID)
|
||||
empty_intent_container.setMetaDataEntry("type", "intent")
|
||||
empty_intent_container.setName(catalog.i18nc("@info:No intent profile selected", "Default"))
|
||||
|
||||
|
||||
# All empty container IDs set
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue