From 8c28dd8d840d6b42f5ea31d6b54b83e7b3ac45e1 Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Tue, 26 May 2020 13:58:21 +0200 Subject: [PATCH] Check for internet when determining connection status CURA-7437 --- resources/qml/PrinterSelector/MachineSelector.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/qml/PrinterSelector/MachineSelector.qml b/resources/qml/PrinterSelector/MachineSelector.qml index f7233d31e6..5fc750755d 100644 --- a/resources/qml/PrinterSelector/MachineSelector.qml +++ b/resources/qml/PrinterSelector/MachineSelector.qml @@ -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 "" }