Fix dev tools

This commit is contained in:
Carl Schwan
2024-06-28 00:28:04 +02:00
parent b98ca5af52
commit af3c4f536a
5 changed files with 16 additions and 6 deletions

View File

@@ -3,6 +3,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
import QtQuick
import QtQuick.Controls as QQC2
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
@@ -12,6 +13,10 @@ import org.kde.neochat
import org.kde.neochat.devtools
FormCard.FormCardPage {
id: root
required property NeoChatConnection connection
title: i18nc("@title:window", "General")
FormCard.FormHeader {
@@ -234,7 +239,7 @@ FormCard.FormCardPage {
FormCard.FormButtonDelegate {
visible: Config.developerTools
text: i18n("Open developer tools")
onClicked: applicationWindow().pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat.devtools', 'DevtoolsPage'), {
onClicked: root.QQC2.ApplicationWindow.window.pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat.devtools', 'DevtoolsPage'), {
connection: root.connection
}, {
title: i18n("Developer Tools")