mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-08 12:46:08 +00:00
fix: random crash on login
This commit is contained in:
parent
070f9a2187
commit
e35a6141b9
@ -20,6 +20,8 @@ Item {
|
|||||||
property string address: ""
|
property string address: ""
|
||||||
property bool resultClickable: true
|
property bool resultClickable: true
|
||||||
|
|
||||||
|
property bool isAddedContact: pubKey != "" ? chatsModel.isAddedContact(pubKey) : false
|
||||||
|
|
||||||
signal resultClicked(string pubKey)
|
signal resultClicked(string pubKey)
|
||||||
signal addToContactsButtonClicked(string pubKey)
|
signal addToContactsButtonClicked(string pubKey)
|
||||||
|
|
||||||
@ -118,7 +120,7 @@ Item {
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: Style.current.padding
|
anchors.rightMargin: Style.current.padding
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: !chatsModel.isAddedContact(root.pubKey) && !checkIcon.visible
|
visible: !isAddedContact && !checkIcon.visible
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
@ -144,7 +146,7 @@ Item {
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: Style.current.smallPadding * 2
|
anchors.rightMargin: Style.current.smallPadding * 2
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
visible: foundContact.hovered && chatsModel.isAddedContact(root.pubKey)
|
visible: foundContact.hovered && isAddedContact
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user