Put message debug thing in EventContent

This commit is contained in:
miruka 2019-09-19 18:39:45 -04:00
parent c1a27328d9
commit d9addff8ef
2 changed files with 8 additions and 8 deletions

View File

@ -21,6 +21,14 @@ HRowLayout {
totalSpacing totalSpacing
TapHandler {
enabled: debugMode
onDoubleTapped:
Utils.debug(eventContent, con => { con.runJS("json()") })
}
Item { Item {
id: avatarWrapper id: avatarWrapper
opacity: collapseAvatar ? 0 : 1 opacity: collapseAvatar ? 0 : 1

View File

@ -165,13 +165,5 @@ Column {
{userId: chatPage.userId, roomId: chatPage.roomId}, {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()") })
}
} }
} }