fix(desktop/chat): stickers pack popup not opened
Fixed can't open a sticker pack when clicking a sticker in a chat. Closes #4203
This commit is contained in:
parent
7aa777f2e3
commit
2039748072
|
@ -7,11 +7,12 @@ MouseArea {
|
||||||
z: 50
|
z: 50
|
||||||
enabled: !placeholderMessage
|
enabled: !placeholderMessage
|
||||||
|
|
||||||
property bool isHovered: false
|
//TODO remove dynamic scoping
|
||||||
property bool isSticker: false
|
// property bool isHovered: false
|
||||||
property bool placeholderMessage: false
|
// property bool isSticker: false
|
||||||
|
// property bool placeholderMessage: false
|
||||||
|
// property var isMessageActive
|
||||||
property bool isActivityCenterMessage: false
|
property bool isActivityCenterMessage: false
|
||||||
property var isMessageActive
|
|
||||||
property var messageContextMenu
|
property var messageContextMenu
|
||||||
signal setMessageActive(string messageId, bool active)
|
signal setMessageActive(string messageId, bool active)
|
||||||
signal clickMessage(bool isProfileClick, bool isSticker, bool isImage)
|
signal clickMessage(bool isProfileClick, bool isSticker, bool isImage)
|
||||||
|
@ -27,7 +28,6 @@ MouseArea {
|
||||||
if (mouse.button === Qt.RightButton) {
|
if (mouse.button === Qt.RightButton) {
|
||||||
if (!!messageContextMenu) {
|
if (!!messageContextMenu) {
|
||||||
// Set parent, X & Y positions for the messageContextMenu
|
// Set parent, X & Y positions for the messageContextMenu
|
||||||
//TODO remove dynamic scoping
|
|
||||||
messageContextMenu.parent = root
|
messageContextMenu.parent = root
|
||||||
messageContextMenu.setXPosition = function() { return (mouse.x)};
|
messageContextMenu.setXPosition = function() { return (mouse.x)};
|
||||||
messageContextMenu.setYPosition = function() { return (mouse.y)};
|
messageContextMenu.setYPosition = function() { return (mouse.y)};
|
||||||
|
@ -38,7 +38,6 @@ MouseArea {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//TODO remove dynamic scoping
|
|
||||||
if (mouse.button === Qt.LeftButton && isSticker && stickersLoaded) {
|
if (mouse.button === Qt.LeftButton && isSticker && stickersLoaded) {
|
||||||
if (isHovered) {
|
if (isHovered) {
|
||||||
isHovered = false;
|
isHovered = false;
|
||||||
|
|
Loading…
Reference in New Issue