parent
664ee6cabd
commit
705c6a0ebf
1 changed files with 4 additions and 2 deletions
|
|
@ -112,7 +112,9 @@ ListItem {
|
|||
}
|
||||
Label {
|
||||
width: parent.width
|
||||
text: qsTr("Note: %1").arg(model.note !== undefined ? model.note : "")
|
||||
text: model.note === undefined || model.note === "" ?
|
||||
"" :
|
||||
qsTr("Note: %1").arg(model.note)
|
||||
color: model.unread > 0 ?
|
||||
(listItem.highlighted ? Theme.highlightColor : Theme.primaryColor) :
|
||||
(listItem.highlighted ? Theme.secondaryHighlightColor : Theme.secondaryColor)
|
||||
|
|
@ -123,7 +125,7 @@ ListItem {
|
|||
font.weight: Font.Light
|
||||
font.italic: true
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
visible: settings.showNote && model.note !== undefined && model.note !== ""
|
||||
visible: settings.showNote && text !== ""
|
||||
}
|
||||
|
||||
Grid {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue