Add devtools button to account menu

This commit is contained in:
Tobias Fella
2024-03-02 19:06:08 +01:00
parent 10e3ab1f78
commit 1249304907
4 changed files with 22 additions and 1 deletions

View File

@@ -50,6 +50,18 @@ QQC2.Menu {
height: Kirigami.Units.gridUnit * 42
})
}
QQC2.MenuItem {
text: i18n("Open developer tools")
icon.name: "tools"
visible: Config.developerTools
onTriggered: pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'DevtoolsPage.qml'), {
connection: root.connection
}, {
title: i18nc("@title:window", "Developer Tools"),
width: Kirigami.Units.gridUnit * 50,
height: Kirigami.Units.gridUnit * 42
})
}
QQC2.MenuItem {
text: i18n("Logout")
icon.name: "list-remove-user"