Fix visibility condition to pick up debug printers

This commit is contained in:
Anton Thomasson 2021-02-13 17:11:45 +01:00
parent f7790e2ed3
commit 588e3b00c5

View file

@ -139,7 +139,12 @@ Page {
id: delegate
contentItem.height: visible ? Math.max(column.implicitHeight, Theme.itemSizeLarge+2*Theme.paddingMedium) : 0
visible: false
IppPrinter {
id: printer
url: model.display
}
visible: Object.keys(printer.attrs).length !== 0
property string name: printer.attrs["printer-name"].value != "" ? printer.attrs["printer-name"].value : qsTr("Unknown")
property bool canPrint: Utils.supported_formats(printer, ConvertChecker, considerAdditionalFormatsSetting.value).mimetypes.indexOf(selectedFileType) != -1
@ -198,11 +203,6 @@ Page {
}
}
IppPrinter {
id: printer
url: model.display
}
Image {
id: icon
anchors.top: parent.top