Remove almost duplicate file

CURA-11800
This commit is contained in:
c.lamboo 2024-03-30 16:16:27 +01:00
parent a95418f072
commit b3d3c4d00a
3 changed files with 33 additions and 135 deletions

View file

@ -14,7 +14,9 @@ UM.Dialog
// This dialog asks the user whether he/she wants to open a project file as a project or import models.
id: base
title: catalog.i18nc("@title:window", "Open project file")
title: base.is_ucp
? catalog.i18nc("@title:window Don't translate 'Universal Cura Project'", "Open Universal Cura Project (UCP) file")
: catalog.i18nc("@title:window", "Open project file")
width: UM.Theme.getSize("small_popup_dialog").width
height: UM.Theme.getSize("small_popup_dialog").height
backgroundColor: UM.Theme.getColor("main_background")
@ -28,6 +30,7 @@ UM.Dialog
property var fileUrl
property var addToRecent: true //Whether to add this file to the recent files list after reading it.
property bool is_ucp: false
// load the entire project
function loadProjectFile() {
@ -81,7 +84,9 @@ UM.Dialog
{
id: questionText
width: parent.width
text: catalog.i18nc("@text:window", "This is a Cura project file. Would you like to open it as a project or import the models from it?")
text: base.is_ucp
? catalog.i18nc("@text:window", "This is a Cura Universal project file. Would you like to open it as a Cura project or Cura Universal Project or import the models from it?")
: catalog.i18nc("@text:window", "This is a Cura project file. Would you like to open it as a project or import the models from it?")
wrapMode: Text.WordWrap
}
@ -100,10 +105,18 @@ UM.Dialog
rightButtons:
[
Cura.PrimaryButton
{
text: catalog.i18nc("@action:button", "Open as UCP")
iconSource: UM.Theme.getIcon("CuraShareIcon")
onClicked: loadProjectFile()
visible: base.is_ucp
},
Cura.PrimaryButton
{
text: catalog.i18nc("@action:button", "Open as project")
onClicked: loadProjectFile()
visible: !base.is_ucp
},
Cura.SecondaryButton
{