mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:55:57 +08:00
Display appropriate tooltip message when cloud printer is offline
Display a different message in the popup tooltip when the internet is reachable but the printer is offline. CURA-7460
This commit is contained in:
parent
73026a0744
commit
a06035cf38
@ -38,12 +38,23 @@ Cura.ExpandablePopup
|
||||
readonly property string connectionStatusMessage: {
|
||||
if (connectionStatus == "printer_cloud_not_available")
|
||||
{
|
||||
if(Cura.API.connectionStatus.isInternetReachable){
|
||||
return catalog.i18nc("@status", "The cloud connection is currently unavailable. Please check your internet connection and sign in to connect to the cloud printer.")
|
||||
} else {
|
||||
if(Cura.API.connectionStatus.isInternetReachable)
|
||||
{
|
||||
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.")
|
||||
}
|
||||
else
|
||||
{
|
||||
return catalog.i18nc("@status", "The cloud connection is currently unavailable. Please sign in to connect to the cloud printer.")
|
||||
}
|
||||
} else
|
||||
{
|
||||
return catalog.i18nc("@status", "The cloud connection is currently unavailable. Please check your internet connection.")
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user