From b6ebb804ba81f1e2920cefc7f95524958ed4b355 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 4 Jan 2018 10:13:55 +0100 Subject: [PATCH] OutputDevice header now shows name of active printer CL-541 --- resources/qml/PrinterOutput/OutputDeviceHeader.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/qml/PrinterOutput/OutputDeviceHeader.qml b/resources/qml/PrinterOutput/OutputDeviceHeader.qml index ca64c79f2b..d6ac863b87 100644 --- a/resources/qml/PrinterOutput/OutputDeviceHeader.qml +++ b/resources/qml/PrinterOutput/OutputDeviceHeader.qml @@ -13,11 +13,12 @@ Item implicitWidth: parent.width implicitHeight: Math.floor(childrenRect.height + UM.Theme.getSize("default_margin").height * 2) property var outputDevice: null + Rectangle { anchors.fill: parent color: UM.Theme.getColor("setting_category") - + property var activePrinter: outputDevice != null ? outputDevice.activePrinter : null Label { id: outputDeviceNameLabel @@ -26,7 +27,7 @@ Item anchors.left: parent.left anchors.top: parent.top anchors.margins: UM.Theme.getSize("default_margin").width - text: outputDevice != null ? outputDevice.name : catalog.i18nc("@info:status", "No printer connected") + text: outputDevice != null ? activePrinter.name : "" } Label {