diff options
Diffstat (limited to 'qml')
-rw-r--r-- | qml/main.qml | 7 |
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) + } } ] } |