aboutsummaryrefslogtreecommitdiff
path: root/qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/main.qml')
-rw-r--r--qml/main.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/qml/main.qml b/qml/main.qml
index 546d553..7b0601b 100644
--- a/qml/main.qml
+++ b/qml/main.qml
@@ -12,7 +12,9 @@ Kirigami.ApplicationWindow {
title: qsTr("Delta Chat")
- pageStack.initialPage: AccountsPage {}
+ Component {id: accountsPage; AccountsPage {}}
+
+ pageStack.initialPage: SplashPage {}
globalDrawer: Kirigami.GlobalDrawer {
header: Controls.Switch {
@@ -31,6 +33,11 @@ Kirigami.ApplicationWindow {
text: "Maybe network"
iconName: "view-refresh"
onTriggered: dcAccounts.maybeNetwork()
+ },
+ Kirigami.Action {
+ text: "Switch account"
+ iconName: "view-refresh"
+ onTriggered: pageStack.layers.push(accountsPage)
}
]
}