mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:59:02 +08:00
WIP: Fixes and add cloud logic to cloud welcome page
This commit is contained in:
parent
5fa2c72b0d
commit
60f6d881a3
@ -16,7 +16,7 @@ class DiscoveredPrinter(QObject):
|
||||
self._ip_address = ip_address
|
||||
self._key = key
|
||||
self._name = name
|
||||
self._create_callback = create_callback
|
||||
self.create_callback = create_callback
|
||||
self._machine_type = machine_type
|
||||
self._device = device
|
||||
|
||||
|
@ -99,14 +99,13 @@ Item
|
||||
text: catalog.i18nc("@button", "Create an account")
|
||||
width: 140
|
||||
fixedWidthMode: true
|
||||
onClicked: base.showNextPage() // TODO: create account
|
||||
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "/app/create")
|
||||
}
|
||||
|
||||
Cura.SecondaryButton
|
||||
{
|
||||
id: signInButton
|
||||
anchors.left: createAccountButton.right
|
||||
//anchors.leftMargin: 10
|
||||
anchors.verticalCenter: finishButton.verticalCenter
|
||||
text: catalog.i18nc("@button", "Sign in")
|
||||
width: 80
|
||||
@ -115,6 +114,6 @@ Item
|
||||
hoverColor: "transparent"
|
||||
textHoverColor: UM.Theme.getColor("text_light_blue")
|
||||
fixedWidthMode: true
|
||||
onClicked: base.showNextPage() // TODO: sign in
|
||||
onClicked: Cura.API.account.login()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user