diff options
author | link2xt <link2xt@testrun.org> | 2021-02-27 17:49:28 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-02-27 17:49:28 +0300 |
commit | 502e28ecd76c6f4299dfcec10f71e3b234aa4a5b (patch) | |
tree | b79e3f9f3287f768160b427f06e0af2495473721 /qml/main.qml | |
parent | 698f2fde901dd9accd7837448e910d0e2c91563d (diff) | |
download | kdeltachat-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.qml | 9 |
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) } ] } |