mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Display error when opening 3mf files
CURA-6990
This commit is contained in:
parent
5c1b7470a7
commit
84f19458c5
1 changed files with 19 additions and 1 deletions
|
@ -17,7 +17,7 @@ UM.Dialog
|
||||||
minimumWidth: UM.Theme.getSize("popup_dialog").width
|
minimumWidth: UM.Theme.getSize("popup_dialog").width
|
||||||
minimumHeight: UM.Theme.getSize("popup_dialog").height
|
minimumHeight: UM.Theme.getSize("popup_dialog").height
|
||||||
width: minimumWidth
|
width: minimumWidth
|
||||||
|
margin: UM.Theme.getSize("default_margin").width
|
||||||
property int comboboxHeight: UM.Theme.getSize("default_margin").height
|
property int comboboxHeight: UM.Theme.getSize("default_margin").height
|
||||||
|
|
||||||
onClosing: manager.notifyClosed()
|
onClosing: manager.notifyClosed()
|
||||||
|
@ -442,18 +442,36 @@ 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
|
||||||
buttonSpacing: UM.Theme.getSize("default_margin").width
|
buttonSpacing: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
rightButtons: [
|
rightButtons: [
|
||||||
Cura.TertiaryButton
|
Cura.TertiaryButton
|
||||||
{
|
{
|
||||||
|
visible: !warning
|
||||||
text: catalog.i18nc("@action:button", "Cancel")
|
text: catalog.i18nc("@action:button", "Cancel")
|
||||||
onClicked: reject()
|
onClicked: reject()
|
||||||
},
|
},
|
||||||
Cura.PrimaryButton
|
Cura.PrimaryButton
|
||||||
{
|
{
|
||||||
|
visible: !warning
|
||||||
text: catalog.i18nc("@action:button", "Open")
|
text: catalog.i18nc("@action:button", "Open")
|
||||||
onClicked: accept()
|
onClicked: accept()
|
||||||
|
},
|
||||||
|
Cura.TertiaryButton
|
||||||
|
{
|
||||||
|
visible: warning
|
||||||
|
text: catalog.i18nc("@action:button", "Open project anyway")
|
||||||
|
onClicked: reject()
|
||||||
|
},
|
||||||
|
Cura.PrimaryButton
|
||||||
|
{
|
||||||
|
visible: warning
|
||||||
|
text: catalog.i18nc("@action:button", "Install missing Material")
|
||||||
|
onClicked: accept()
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue