Bind no printer label visible to item count

This commit is contained in:
Lipu Fei 2019-03-20 14:04:59 +01:00
parent 428fb5a3a1
commit 8cc05a2a62

View file

@ -45,7 +45,7 @@ Item
text: catalog.i18nc("@label", "There is no printer found over your network.") text: catalog.i18nc("@label", "There is no printer found over your network.")
renderType: Text.NativeRendering renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
visible: !networkPrinterScrollView.visible visible: networkPrinterListView.count == 0 // Do not show if there are discovered devices.
} }
ScrollView ScrollView