Remove hard-coded account URLs in QMLs

CURA-6117
This commit is contained in:
Lipu Fei 2019-01-17 11:20:19 +01:00
parent c28aefac4e
commit 3b3baeac03
3 changed files with 11 additions and 13 deletions

View file

@ -16,7 +16,7 @@ Row
width: UM.Theme.getSize("account_button").width
height: UM.Theme.getSize("account_button").height
text: catalog.i18nc("@button", "Create account")
onClicked: Qt.openUrlExternally("https://account.ultimaker.com/app/create")
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl + "/app/create")
fixedWidthMode: true
}

View file

@ -16,7 +16,7 @@ Row
width: UM.Theme.getSize("account_button").width
height: UM.Theme.getSize("account_button").height
text: catalog.i18nc("@button", "Manage account")
onClicked: Qt.openUrlExternally("https://account.ultimaker.com")
onClicked: Qt.openUrlExternally(CuraApplication.ultimakerCloudAccountRootUrl)
fixedWidthMode: true
}