Use null coalescing.

This commit is contained in:
Black
2020-06-03 22:02:46 -07:00
parent 1f95e8888a
commit 9fc316757e
10 changed files with 18 additions and 20 deletions

View File

@@ -224,7 +224,7 @@ Item {
Layout.fillHeight: true
source: avatar
hint: name || "No Name"
hint: name ?? ""
}
ColumnLayout {
@@ -236,7 +236,7 @@ Item {
Layout.fillWidth: true
Layout.fillHeight: true
text: name || "No Name"
text: name ?? ""
color: MPalette.foreground
font.pixelSize: 16
font.bold: unreadCount >= 0