Redirect to "Add cloud printer" page when button clicked

CURA-7022
This commit is contained in:
Kostas Karmas 2020-04-22 16:15:24 +02:00
parent a4c5e63355
commit 1d7c327b36
2 changed files with 17 additions and 0 deletions

View file

@ -65,6 +65,20 @@ Item
{
base.goToPage("add_printer_by_ip")
}
onAddCloudPrinterButtonClicked:
{
base.goToPage("add_cloud_printers")
if (!Cura.API.account.isLoggedIn)
{
Cura.API.account.login()
}
else
{
Qt.openUrlExternally("https://mycloud.ultimaker.com/app/manage/printers")
}
}
}
}
}