mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-15 07:33:15 +08:00
Add create new button
CURA-9424
This commit is contained in:
parent
dd4e1c66b7
commit
948ac84070
@ -122,6 +122,27 @@ UM.Dialog
|
|||||||
isCloudRegistered: false
|
isCloudRegistered: false
|
||||||
isGroup: false
|
isGroup: false
|
||||||
|
|
||||||
|
buttons: [
|
||||||
|
Cura.SecondaryButton
|
||||||
|
{
|
||||||
|
id: createNewPrinter
|
||||||
|
text: catalog.i18nc("@button", "Create new")
|
||||||
|
fixedWidthMode: true
|
||||||
|
width: parent.width - leftPadding * 1.5
|
||||||
|
onClicked:
|
||||||
|
{
|
||||||
|
machineSelector.machineName = catalog.i18nc("@button", "Create new")
|
||||||
|
machineSelector.isNetworkPrinter = false
|
||||||
|
machineSelector.isConnectedCloudPrinter = false
|
||||||
|
machineSelector.isCloudRegistered = false
|
||||||
|
machineSelector.isGroup = false
|
||||||
|
|
||||||
|
toggleContent()
|
||||||
|
manager.setResolveStrategy("machine", "new")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
onSelectPrinter: function(machine)
|
onSelectPrinter: function(machine)
|
||||||
{
|
{
|
||||||
toggleContent();
|
toggleContent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user