aboutsummaryrefslogtreecommitdiff
path: root/qml/ChatlistPage.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-02-27 00:44:25 +0300
committerlink2xt <link2xt@testrun.org>2021-02-27 00:44:25 +0300
commit698f2fde901dd9accd7837448e910d0e2c91563d (patch)
treebc6039f37cfef67711ab7b5c41241af751ff22f4 /qml/ChatlistPage.qml
parent806f1cbe695914e7e7206e6dcffc4b47ffe43330 (diff)
downloadkdeltachat-698f2fde901dd9accd7837448e910d0e2c91563d.tar.gz
kdeltachat-698f2fde901dd9accd7837448e910d0e2c91563d.zip
Replace accounts page when account is selected
Account management should be moved to an overlay or left panel, not available all the time as a first page.
Diffstat (limited to 'qml/ChatlistPage.qml')
-rw-r--r--qml/ChatlistPage.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/qml/ChatlistPage.qml b/qml/ChatlistPage.qml
index c77bbba..ce81602 100644
--- a/qml/ChatlistPage.qml
+++ b/qml/ChatlistPage.qml
@@ -97,10 +97,10 @@ Kirigami.Page {
let chatPageComponent = Qt.createComponent("qrc:/qml/ChatPage.qml")
if (chatPageComponent.status == Component.Ready) {
let myPage = chatPageComponent.createObject(chatlistPage, {chatId: chatId})
- if (pageStack.depth == 2) {
+ if (pageStack.depth == 1) {
pageStack.push(myPage)
- } else if (pageStack.depth == 3) {
- pageStack.currentIndex = 2
+ } else if (pageStack.depth == 2) {
+ pageStack.currentIndex = 1
pageStack.replace(myPage)
}
} else if (chatPageComponent.status == Component.Error) {