Create qml module for devtools

This commit is contained in:
James Graham
2024-03-31 20:26:07 +01:00
parent a53ad41879
commit 0552c798fb
11 changed files with 22 additions and 10 deletions

View File

@@ -9,6 +9,7 @@ import org.kde.kirigami as Kirigami
import org.kde.kirigamiaddons.formcard as FormCard
import org.kde.neochat
import org.kde.neochat.devtools
import org.kde.neochat.config
FormCard.FormCardPage {
@@ -218,7 +219,7 @@ FormCard.FormCardPage {
FormCard.FormButtonDelegate {
visible: Config.developerTools
text: i18n("Open developer tools")
onClicked: applicationWindow().pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'DevtoolsPage.qml'), {
onClicked: applicationWindow().pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat.devtools', 'DevtoolsPage.qml'), {
connection: root.connection
}, {
title: i18n("Developer Tools")