Display an appropriate tooltip when device is removed from the account

The tooltip is updated to reflect the case where a cloud printer is
removed from the users account.

CURA-7438
This commit is contained in:
Kostas Karmas 2020-06-04 15:08:27 +02:00
parent ee7f2d4b38
commit 4bebaaaddb
2 changed files with 13 additions and 1 deletions

View file

@ -42,7 +42,14 @@ Cura.ExpandablePopup
{
if (Cura.API.account.isLoggedIn)
{
return catalog.i18nc("@status", "The cloud printer is offline. Please check if the printer is turned on and connected to the internet.")
if (Cura.MachineManager.activeMachineIsLinkedToCurrentAccount)
{
return catalog.i18nc("@status", "The cloud printer is offline. Please check if the printer is turned on and connected to the internet.")
}
else
{
return catalog.i18nc("@status", "This printer is not linked to your account. Please visit the Ultimaker Digital Factory to establish a connection.")
}
}
else
{