diff options
-rw-r--r-- | qml/AccountsPage.qml | 2 | ||||
-rw-r--r-- | qml/ConfigurePage.qml | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/qml/AccountsPage.qml b/qml/AccountsPage.qml index 48c98b5..f413cf5 100644 --- a/qml/AccountsPage.qml +++ b/qml/AccountsPage.qml @@ -111,7 +111,7 @@ Kirigami.Page { if (context.isConfigured()) { pageStack.push("qrc:/qml/ChatlistPage.qml", {context: context}) } else { - pageStack.push("qrc:/qml/ConfigurePage.qml", {}) + pageStack.push("qrc:/qml/ConfigurePage.qml", {context: context}) } } } diff --git a/qml/ConfigurePage.qml b/qml/ConfigurePage.qml index 6b2e4c8..15edead 100644 --- a/qml/ConfigurePage.qml +++ b/qml/ConfigurePage.qml @@ -4,8 +4,13 @@ import QtQuick.Layouts 1.12 import QtQml.Models 2.1 import org.kde.kirigami 2.12 as Kirigami +import DeltaChat 1.0 + Kirigami.Page { title: qsTr("Configure account") + id: configurePage + + property DcContext context ColumnLayout { anchors.fill: parent @@ -25,6 +30,9 @@ Kirigami.Page { text: "Login" onClicked: { console.log("Login") + configurePage.context.setConfig("addr", addressField.text) + configurePage.context.setConfig("mail_pw", passwordField.text) + configurePage.context.configure() } } } |