mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Fix info message when cluster has 0 machines
This commit is contained in:
parent
57b1cb3bc8
commit
e5c5f213a9
2 changed files with 6 additions and 13 deletions
|
@ -27,19 +27,13 @@ Component
|
||||||
id: activePrintersLabel
|
id: activePrintersLabel
|
||||||
font: UM.Theme.getFont("large")
|
font: UM.Theme.getFont("large")
|
||||||
|
|
||||||
text:
|
anchors {
|
||||||
{
|
top: parent.top
|
||||||
if (OutputDevice.connectedPrinters.length == 0){
|
topMargin: UM.Theme.getSize("default_margin").height * 2 // a bit more spacing to give it some breathing room
|
||||||
return catalog.i18nc("@label: arg 1 is group name", "%1 is not set up to host a group of connected Ultimaker 3 printers").arg(Cura.MachineManager.printerOutputDevices[0].name)
|
horizontalCenter: parent.horizontalCenter
|
||||||
} else {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
text: OutputDevice.connectedPrinters.length == 0 ? catalog.i18nc("@label: arg 1 is group name", "%1 is not set up to host a group of connected Ultimaker 3 printers").arg(Cura.MachineManager.printerOutputDevices[0].name) : ""
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
anchors.topMargin: UM.Theme.getSize("default_margin").height
|
|
||||||
|
|
||||||
visible: OutputDevice.connectedPrinters.length == 0
|
visible: OutputDevice.connectedPrinters.length == 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,7 +144,6 @@ class NetworkPrinterOutputDevicePlugin(QObject, OutputDevicePlugin):
|
||||||
Logger.log("e", "Printer returned incorrect UTF-8.")
|
Logger.log("e", "Printer returned incorrect UTF-8.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
if address not in self._network_requests_buffer:
|
if address not in self._network_requests_buffer:
|
||||||
self._network_requests_buffer[address] = {}
|
self._network_requests_buffer[address] = {}
|
||||||
self._network_requests_buffer[address]["system"] = system_info
|
self._network_requests_buffer[address]["system"] = system_info
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue