diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-07-26 02:06:38 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-07-26 02:06:38 +0200 |
commit | 8bf26917ad0f9f8d74128fbb8d9ad2c8fd495068 (patch) | |
tree | 56894a67bdeb3568a04942a58710cdc61af6b31b /resources/qml/TimelineView.qml | |
parent | Optimize scrolling a little bit (diff) | |
download | nheko-8bf26917ad0f9f8d74128fbb8d9ad2c8fd495068.tar.xz |
Make long press menu actually work
Diffstat (limited to 'resources/qml/TimelineView.qml')
-rw-r--r-- | resources/qml/TimelineView.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index 7bdeb01f..8a5612d2 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -42,10 +42,14 @@ Page { id: messageContextMenu modal: true - function show(eventId_, eventType_, isEncrypted_, showAt_) { + function show(eventId_, eventType_, isEncrypted_, showAt_, position) { eventId = eventId_ eventType = eventType_ isEncrypted = isEncrypted_ + + if (position) + popup(position, showAt_) + else popup(showAt_) } |