Hide "Type" label when no printer is selected on the manager printers page

This commit is contained in:
fieldOfView 2016-08-01 16:56:56 +02:00
parent 9b4383f361
commit 0d9d4b88ce

View File

@ -125,8 +125,14 @@ UM.ManagementPage
spacing: UM.Theme.getSize("default_margin").height spacing: UM.Theme.getSize("default_margin").height
Label { text: catalog.i18nc("@label", "Type"); visible: base.currentItem } Label
Label { text: (base.currentItem && base.currentItem.metadata) ? base.currentItem.metadata.definition_name : "" } {
text: catalog.i18nc("@label", "Type")
visible: base.currentItem && base.currentItem.metadata
}
Label {
text: (base.currentItem && base.currentItem.metadata) ? base.currentItem.metadata.definition_name : ""
}
} }
UM.I18nCatalog { id: catalog; name: "uranium"; } UM.I18nCatalog { id: catalog; name: "uranium"; }