Fix the share dialog not showing up

Seems to be a leftover from the refactor to use modules.
This commit is contained in:
Joshua Goins
2024-04-06 15:39:36 -04:00
parent 9b93eb44d5
commit 879da627b1

View File

@@ -413,7 +413,7 @@ Kirigami.ApplicationWindow {
}
}
function handleShare(): void {
const dialog = applicationWindow().pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/ChooseRoomDialog.qml", {
const dialog = applicationWindow().pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'ChooseRoomDialog.qml'), {
connection: root.connection
}, {
title: i18nc("@title", "Share"),