Placeholder; the selected printer to monitor is abstract, but cloud-capable.

forms the base of CURA-9422
This commit is contained in:
Remco Burema 2022-08-26 13:10:09 +02:00
parent fe7960ee73
commit 95f234679c
2 changed files with 23 additions and 2 deletions

View file

@ -12,6 +12,7 @@ Rectangle
id: viewportOverlay
property bool isConnected: Cura.MachineManager.activeMachineHasNetworkConnection || Cura.MachineManager.activeMachineHasCloudConnection
property bool isAbstractCloudPrinter: Cura.MachineManager.activeMachineIsAbstract // && Cura.MachineManager.activeMachineHasCloudRegistration
property bool isNetworkConfigurable:
{
if(Cura.MachineManager.activeMachine === null)
@ -96,7 +97,7 @@ Rectangle
{
horizontalCenter: parent.horizontalCenter
}
visible: isNetworkConfigured && !isConnected
visible: isNetworkConfigured && !isConnected && !isAbstractCloudPrinter
text: catalog.i18nc("@info", "Please make sure your printer has a connection:\n- Check if the printer is turned on.\n- Check if the printer is connected to the network.\n- Check if you are signed in to discover cloud-connected printers.")
font: UM.Theme.getFont("medium")
width: contentWidth
@ -109,11 +110,25 @@ Rectangle
{
horizontalCenter: parent.horizontalCenter
}
visible: !isNetworkConfigured && isNetworkConfigurable
visible: !isNetworkConfigured && isNetworkConfigurable && !isAbstractCloudPrinter
text: catalog.i18nc("@info", "Please connect your printer to the network.")
font: UM.Theme.getFont("medium")
width: contentWidth
}
UM.Label
{
id: sendToFactoryLabel
anchors
{
horizontalCenter: parent.horizontalCenter
}
visible: isAbstractCloudPrinter
text: catalog.i18nc("@info", "Please go to the Digital Factory. [PLACEHOLDER]")
font: UM.Theme.getFont("medium")
width: contentWidth
}
Item
{
anchors