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.
This commit is contained in:
Joshua Goins
2023-09-12 17:13:14 -04:00
committed by Carl Schwan
parent f1076a5ced
commit 32b3861c3e

View File

@@ -80,6 +80,7 @@ Loader {
})
},
Kirigami.Action {
visible: Config.developerTools
text: i18n("View Source")
icon.name: "code-context"
onTriggered: {