fix(AppMain): display a badge for Settings icon with incoming CR

Fixes #9779
This commit is contained in:
Lukáš Tinkl 2024-02-08 13:54:32 +01:00 committed by Lukáš Tinkl
parent 588ad6d70b
commit b38138cc71
1 changed files with 3 additions and 1 deletions

View File

@ -716,7 +716,9 @@ Item {
tooltip.text: Utils.translatedSectionName(model.sectionType, model.name)
checked: model.active
badge.value: model.notificationsCount
badge.visible: model.hasNotification
badge.visible: model.sectionType === Constants.appSection.profile &&
appMain.rootStore.contactStore.receivedContactRequestsModel.count ? true // pending CR request
: model.hasNotification
badge.border.color: hovered ? Theme.palette.statusBadge.hoverBorderColor : Theme.palette.statusBadge.borderColor
badge.border.width: 2
onClicked: {