fix(ProfileDialogView): Share your own profile button is missing

- do not fully deactivate the secondary button slot/loader as it's also
used by the Share button

Fixes #14995
This commit is contained in:
Lukáš Tinkl 2024-05-31 15:18:29 +02:00 committed by Anastasiya
parent 70bdd9140f
commit c53c8bb08a
1 changed files with 3 additions and 1 deletions

View File

@ -319,11 +319,13 @@ Pane {
Loader {
Layout.alignment: Qt.AlignTop
Layout.preferredHeight: menuButton.visible ? menuButton.height : -1
active: root.idVerificationFlowsEnabled
sourceComponent: {
if (d.isCurrentUser && !root.readOnly)
return btnShareProfile
if (!root.idVerificationFlowsEnabled)
return
if (d.isContact && !(d.isTrusted || d.isLocallyTrusted) && !d.isBlocked) {
if (d.isVerificationRequestSent)
return btnReviewIDVerificationReply