mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Set warning only if there are missing materials
CURA-6990
This commit is contained in:
parent
84f19458c5
commit
cd18bfb893
1 changed files with 5 additions and 7 deletions
|
|
@ -442,34 +442,32 @@ UM.Dialog
|
|||
}
|
||||
}
|
||||
|
||||
property bool warning: true
|
||||
|
||||
buttonWarningText: "The material used in this project is currently not installed in Cura.<br/>Install the material profile and reopen the project."
|
||||
buttonWarning: warning
|
||||
buttonWarning: manager.missingPackages.length > 0
|
||||
buttonSpacing: UM.Theme.getSize("default_margin").width
|
||||
|
||||
rightButtons: [
|
||||
Cura.TertiaryButton
|
||||
{
|
||||
visible: !warning
|
||||
visible: !buttonWarning
|
||||
text: catalog.i18nc("@action:button", "Cancel")
|
||||
onClicked: reject()
|
||||
},
|
||||
Cura.PrimaryButton
|
||||
{
|
||||
visible: !warning
|
||||
visible: !buttonWarning
|
||||
text: catalog.i18nc("@action:button", "Open")
|
||||
onClicked: accept()
|
||||
},
|
||||
Cura.TertiaryButton
|
||||
{
|
||||
visible: warning
|
||||
visible: buttonWarning
|
||||
text: catalog.i18nc("@action:button", "Open project anyway")
|
||||
onClicked: reject()
|
||||
},
|
||||
Cura.PrimaryButton
|
||||
{
|
||||
visible: warning
|
||||
visible: buttonWarning
|
||||
text: catalog.i18nc("@action:button", "Install missing Material")
|
||||
onClicked: accept()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue