mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Hide mwi count if 0
This commit is contained in:
parent
387bf67e8f
commit
7c639b734e
2 changed files with 3 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ Control.Control{
|
|||
Layout.preferredWidth: 27 * DefaultStyle.dp
|
||||
Layout.preferredHeight: 28 * DefaultStyle.dp
|
||||
visible: mainItem.account.core.showMwi
|
||||
voicemailCount: mainItem.account.core.voicemailCount >= 100 ? '99+' : mainItem.account.core.voicemailCount
|
||||
voicemailCount: mainItem.account.core.voicemailCount
|
||||
onClicked: {
|
||||
if (mainItem.account.core.voicemailAddress.length > 0)
|
||||
UtilsCpp.createCall(mainItem.account.core.voicemailAddress)
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@ Rectangle{
|
|||
font.weight: 700 * DefaultStyle.dp
|
||||
font.pixelSize: 10 * DefaultStyle.dp
|
||||
color: DefaultStyle.danger_500main
|
||||
text: voicemailCount
|
||||
text: voicemailCount >= 100 ? '99+' : voicemailCount
|
||||
visible: voicemailCount > 0
|
||||
maximumLineCount: 1
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue