aboutsummaryrefslogtreecommitdiff
path: root/qml/main.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-02-27 17:49:28 +0300
committerlink2xt <link2xt@testrun.org>2021-02-27 17:49:28 +0300
commit502e28ecd76c6f4299dfcec10f71e3b234aa4a5b (patch)
treeb79e3f9f3287f768160b427f06e0af2495473721 /qml/main.qml
parent698f2fde901dd9accd7837448e910d0e2c91563d (diff)
downloadkdeltachat-502e28ecd76c6f4299dfcec10f71e3b234aa4a5b.tar.gz
kdeltachat-502e28ecd76c6f4299dfcec10f71e3b234aa4a5b.zip
Switch to 2-page layout
Account switching is an overlay now.
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)
}
]
}