diff options
author | c.lamboo <casperlamboo@gmail.com> | 2022-05-31 17:49:47 +0300 |
---|---|---|
committer | c.lamboo <casperlamboo@gmail.com> | 2022-05-31 17:49:47 +0300 |
commit | 84f19458c58ac4ca841672796833aa2d0c22fa49 (patch) | |
tree | 1595a06f501058cff6074734f327e9551be0928c /plugins/3MFReader/WorkspaceDialog.qml | |
parent | 5c1b7470a79718ef41ed2c5c936b3a55dd456a76 (diff) |
Display error when opening 3mf files
CURA-6990
Diffstat (limited to 'plugins/3MFReader/WorkspaceDialog.qml')
-rw-r--r-- | plugins/3MFReader/WorkspaceDialog.qml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/plugins/3MFReader/WorkspaceDialog.qml b/plugins/3MFReader/WorkspaceDialog.qml index 4c384b306b..a890714877 100644 --- a/plugins/3MFReader/WorkspaceDialog.qml +++ b/plugins/3MFReader/WorkspaceDialog.qml @@ -17,7 +17,7 @@ UM.Dialog minimumWidth: UM.Theme.getSize("popup_dialog").width minimumHeight: UM.Theme.getSize("popup_dialog").height width: minimumWidth - + margin: UM.Theme.getSize("default_margin").width property int comboboxHeight: UM.Theme.getSize("default_margin").height 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 rightButtons: [ Cura.TertiaryButton { + visible: !warning text: catalog.i18nc("@action:button", "Cancel") onClicked: reject() }, Cura.PrimaryButton { + visible: !warning text: catalog.i18nc("@action:button", "Open") 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() } ] |