mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 15:54:32 +08:00
Check for internet when determining connection status
CURA-7437
This commit is contained in:
parent
4d5ef91c43
commit
8c28dd8d84
@ -21,7 +21,7 @@ Cura.ExpandablePopup
|
||||
{
|
||||
return "printer_connected"
|
||||
}
|
||||
else if (isConnectedCloudPrinter)
|
||||
else if (isConnectedCloudPrinter && Cura.API.connectionStatus.isInternetReachable)
|
||||
{
|
||||
return "printer_cloud_connected"
|
||||
}
|
||||
@ -38,7 +38,11 @@ Cura.ExpandablePopup
|
||||
readonly property string connectionStatusMessage: {
|
||||
if (connectionStatus == "printer_cloud_not_available")
|
||||
{
|
||||
return "The cloud connection is currently unavailable. Please check your internet connection and sign in to connect to the cloud printer"
|
||||
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 {
|
||||
return catalog.i18nc("@status", "The cloud connection is currently unavailable. Please check your internet connection.")
|
||||
}
|
||||
} else {
|
||||
return ""
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user