fix(image-modal): fix having to click multiple times to close the image
Fixes #4586
This commit is contained in:
parent
b467c031b9
commit
25ac0fbb68
|
@ -138,27 +138,6 @@ Item {
|
||||||
reactionModel: root.rootStore.emojiReactionsModel
|
reactionModel: root.rootStore.emojiReactionsModel
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusImageModal {
|
|
||||||
id: imagePopup
|
|
||||||
onClicked: {
|
|
||||||
if (button === Qt.LeftButton) {
|
|
||||||
imagePopup.close()
|
|
||||||
} else if(button === Qt.RightButton) {
|
|
||||||
contextmenu.imageSource = imagePopup.imageSource
|
|
||||||
contextmenu.hideEmojiPicker = true
|
|
||||||
contextmenu.isRightClickOnImage = true;
|
|
||||||
contextmenu.show()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Connections {
|
|
||||||
target: Global
|
|
||||||
onOpenImagePopup: {
|
|
||||||
imagePopup.openPopup(image);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
EmptyChatPanel {
|
EmptyChatPanel {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: root.activeChatId === ""
|
visible: root.activeChatId === ""
|
||||||
|
|
|
@ -136,6 +136,26 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StatusImageModal {
|
||||||
|
id: imagePopup
|
||||||
|
onClicked: {
|
||||||
|
if (button === Qt.LeftButton) {
|
||||||
|
imagePopup.close()
|
||||||
|
} else if(button === Qt.RightButton) {
|
||||||
|
contextmenu.imageSource = imagePopup.imageSource
|
||||||
|
contextmenu.hideEmojiPicker = true
|
||||||
|
contextmenu.isRightClickOnImage = true;
|
||||||
|
contextmenu.show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Connections {
|
||||||
|
target: Global
|
||||||
|
onOpenImagePopup: {
|
||||||
|
imagePopup.openPopup(image);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
property Component profilePopupComponent: ProfilePopup {
|
property Component profilePopupComponent: ProfilePopup {
|
||||||
id: profilePopup
|
id: profilePopup
|
||||||
profileStore: appMain.rootStore.profileSectionStore.profileStore
|
profileStore: appMain.rootStore.profileSectionStore.profileStore
|
||||||
|
|
Loading…
Reference in New Issue