Remove dash if plug-in author is empty

Contributes to issue CURA-4477.
This commit is contained in:
Ghostkeeper 2017-10-25 11:28:41 +02:00
parent 7404df66ac
commit 9ad0fd2b83
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -114,7 +114,7 @@ UM.Dialog
anchors.rightMargin: UM.Theme.getSize("default_margin").width anchors.rightMargin: UM.Theme.getSize("default_margin").width
Label Label
{ {
text: "<b>" + model.name + "</b> - " + model.author text: "<b>" + model.name + "</b>" + ((model.author !== "") ? (" - " + model.author) : "")
width: contentWidth width: contentWidth
height: contentHeight + UM.Theme.getSize("default_margin").height height: contentHeight + UM.Theme.getSize("default_margin").height
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter