mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Remove almost duplicate file
CURA-11800
This commit is contained in:
parent
a95418f072
commit
b3d3c4d00a
3 changed files with 33 additions and 135 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue