Move userConsentRequired to NeoChatConnection

This commit is contained in:
Tobias Fella
2024-01-07 19:44:37 +01:00
parent 9e2bf0da26
commit c10bcf1764
5 changed files with 11 additions and 13 deletions

View File

@@ -300,12 +300,6 @@ Kirigami.ApplicationWindow {
function onErrorOccured(error, detail) {
showPassiveNotification(detail.length > 0 ? i18n("%1: %2", error, detail) : error);
}
function onUserConsentRequired(url) {
let consent = consentSheetComponent.createObject(QQC2.ApplicationWindow.overlay)
consent.url = url
consent.open()
}
}
Connections {
@@ -341,6 +335,11 @@ Kirigami.ApplicationWindow {
title: i18nc("@title:window", "Session Verification")
});
}
function onUserConsentRequired(url) {
let consent = consentSheetComponent.createObject(QQC2.ApplicationWindow.overlay)
consent.url = url
consent.open()
}
}
Component {