diff --git a/plugins/UM3NetworkPrinting/ClusterMonitorItem.qml b/plugins/UM3NetworkPrinting/ClusterMonitorItem.qml index 5a9e1824d8..e78c7d1cc9 100644 --- a/plugins/UM3NetworkPrinting/ClusterMonitorItem.qml +++ b/plugins/UM3NetworkPrinting/ClusterMonitorItem.qml @@ -27,19 +27,13 @@ Component id: activePrintersLabel font: UM.Theme.getFont("large") - text: - { - if (OutputDevice.connectedPrinters.length == 0){ - 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) - } else { - return "" - } + anchors { + top: parent.top + topMargin: UM.Theme.getSize("default_margin").height * 2 // a bit more spacing to give it some breathing room + horizontalCenter: parent.horizontalCenter } - anchors.left: parent.left - anchors.right: parent.right - anchors.top: parent.top - anchors.horizontalCenter: parent.horizontalCenter - anchors.topMargin: UM.Theme.getSize("default_margin").height + + 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) : "" visible: OutputDevice.connectedPrinters.length == 0 } diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevicePlugin.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevicePlugin.py index 0ed745d9d8..2407814fa6 100644 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevicePlugin.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevicePlugin.py @@ -144,7 +144,6 @@ class NetworkPrinterOutputDevicePlugin(QObject, OutputDevicePlugin): Logger.log("e", "Printer returned incorrect UTF-8.") return - if address not in self._network_requests_buffer: self._network_requests_buffer[address] = {} self._network_requests_buffer[address]["system"] = system_info