aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/main.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/qml/main.qml b/qml/main.qml
index cd1af50..7a91980 100644
--- a/qml/main.qml
+++ b/qml/main.qml
@@ -37,7 +37,12 @@ Kirigami.ApplicationWindow {
Kirigami.Action {
text: "Switch account"
iconName: "system-switch-user"
- onTriggered: pageStack.layers.push(accountsPage)
+ onTriggered: {
+ while (pageStack.layers.depth > 1) {
+ pageStack.layers.pop()
+ }
+ pageStack.layers.push(accountsPage)
+ }
}
]
}