fix typo
This commit is contained in:
parent
985f4820bb
commit
e73bcb5b25
|
@ -274,7 +274,7 @@ SplitView {
|
||||||
text: "Is Pin Action Available"
|
text: "Is Pin Action Available"
|
||||||
checked: true
|
checked: true
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
pinnedMessagesPopup.isPinActionAvaliable = checked
|
pinnedMessagesPopup.isPinActionAvailable = checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ StatusDialog {
|
||||||
property string messageToUnpin
|
property string messageToUnpin
|
||||||
property string chatId
|
property string chatId
|
||||||
|
|
||||||
readonly property bool isPinActionAvaliable: true
|
readonly property bool isPinActionAvailable: true
|
||||||
|
|
||||||
signal pinMessageRequested(string messageId)
|
signal pinMessageRequested(string messageId)
|
||||||
signal unpinMessageRequested(string messageId)
|
signal unpinMessageRequested(string messageId)
|
||||||
|
@ -165,7 +165,7 @@ StatusDialog {
|
||||||
z: mouseArea.z + 1
|
z: mouseArea.z + 1
|
||||||
width: 32
|
width: 32
|
||||||
height: 32
|
height: 32
|
||||||
visible: root.isPinActionAvaliable && !root.messageToPin && (hovered || mouseArea.containsMouse)
|
visible: root.isPinActionAvailable && !root.messageToPin && (hovered || mouseArea.containsMouse)
|
||||||
icon.name: "unpin"
|
icon.name: "unpin"
|
||||||
tooltip.text: qsTr("Unpin")
|
tooltip.text: qsTr("Unpin")
|
||||||
color: hovered ? Theme.palette.primaryColor2 : Theme.palette.indirectColor1
|
color: hovered ? Theme.palette.primaryColor2 : Theme.palette.indirectColor1
|
||||||
|
|
|
@ -265,7 +265,7 @@ QtObject {
|
||||||
pinnedMessagesModel: pinnedMessagesModel,
|
pinnedMessagesModel: pinnedMessagesModel,
|
||||||
messageToPin: messageToPin,
|
messageToPin: messageToPin,
|
||||||
chatId: chatId,
|
chatId: chatId,
|
||||||
isPinActionAvaliable: store && store.oneToOneChatContact ? store.oneToOneChatContact.isContact : true
|
isPinActionAvailable: store && store.oneToOneChatContact ? store.oneToOneChatContact.isContact : true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue