From 32b3861c3e5dffc365c918ccf77fb6d3d61f5a7e Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 12 Sep 2023 17:13:14 -0400 Subject: [PATCH] Only show the "View Source" message action when dev tools are enabled This is a very developer-oriented action, and other uses of this dialog (such as interacting with room state events under a room debug page) is also locked behind this option. --- src/qml/Menu/Timeline/MessageDelegateContextMenu.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qml/Menu/Timeline/MessageDelegateContextMenu.qml b/src/qml/Menu/Timeline/MessageDelegateContextMenu.qml index d2d132a11..4c9842574 100644 --- a/src/qml/Menu/Timeline/MessageDelegateContextMenu.qml +++ b/src/qml/Menu/Timeline/MessageDelegateContextMenu.qml @@ -80,6 +80,7 @@ Loader { }) }, Kirigami.Action { + visible: Config.developerTools text: i18n("View Source") icon.name: "code-context" onTriggered: {