diff --git a/src/qml/Chat/Timeline/EventContent.qml b/src/qml/Chat/Timeline/EventContent.qml index 40e22fe1..46df3f20 100644 --- a/src/qml/Chat/Timeline/EventContent.qml +++ b/src/qml/Chat/Timeline/EventContent.qml @@ -21,6 +21,14 @@ HRowLayout { totalSpacing + TapHandler { + enabled: debugMode + onDoubleTapped: + Utils.debug(eventContent, con => { con.runJS("json()") }) + } + + + Item { id: avatarWrapper opacity: collapseAvatar ? 0 : 1 diff --git a/src/qml/Chat/Timeline/EventDelegate.qml b/src/qml/Chat/Timeline/EventDelegate.qml index 46e57c1e..003e87ec 100644 --- a/src/qml/Chat/Timeline/EventDelegate.qml +++ b/src/qml/Chat/Timeline/EventDelegate.qml @@ -165,13 +165,5 @@ Column { {userId: chatPage.userId, roomId: chatPage.roomId}, ) } - - HMenuItem { - icon.name: "settings" - text: qsTr("Set as debug console target") - visible: debugMode - onTriggered: - Utils.debug(eventDelegate, con => { con.runJS("json()") }) - } } }