mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-27 12:51:07 -07:00
Allow to select custom profiles based-on not supported
CURA-5285
This commit is contained in:
parent
a6b62656c7
commit
491e0c83ba
2 changed files with 3 additions and 4 deletions
|
|
@ -51,8 +51,7 @@ Menu
|
||||||
MenuItem
|
MenuItem
|
||||||
{
|
{
|
||||||
text: model.name
|
text: model.name
|
||||||
checkable: model.available
|
checkable: true
|
||||||
enabled: model.available
|
|
||||||
checked: Cura.MachineManager.activeQualityOrQualityChangesName == model.name
|
checked: Cura.MachineManager.activeQualityOrQualityChangesName == model.name
|
||||||
exclusiveGroup: group
|
exclusiveGroup: group
|
||||||
onTriggered: Cura.MachineManager.setQualityChangesGroup(model.quality_changes_group)
|
onTriggered: Cura.MachineManager.setQualityChangesGroup(model.quality_changes_group)
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ Item
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@action:button", "Activate")
|
text: catalog.i18nc("@action:button", "Activate")
|
||||||
iconName: "list-activate"
|
iconName: "list-activate"
|
||||||
enabled: !isCurrentItemActivated && base.currentItem.quality_group != undefined
|
enabled: !isCurrentItemActivated
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (base.currentItem.is_read_only) {
|
if (base.currentItem.is_read_only) {
|
||||||
Cura.MachineManager.setQualityGroup(base.currentItem.quality_group);
|
Cura.MachineManager.setQualityGroup(base.currentItem.quality_group);
|
||||||
|
|
@ -101,7 +101,7 @@ Item
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@label", "Duplicate")
|
text: catalog.i18nc("@label", "Duplicate")
|
||||||
iconName: "list-add"
|
iconName: "list-add"
|
||||||
enabled: !base.canCreateProfile && base.currentItem.quality_group != undefined
|
enabled: !base.canCreateProfile
|
||||||
visible: !base.canCreateProfile
|
visible: !base.canCreateProfile
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue