pushReplace more

(cherry picked from commit 7cd9f788dd)
This commit is contained in:
Carl Schwan
2021-05-28 13:14:53 +02:00
parent e5c65a662e
commit 0db9c0454f

View File

@@ -192,7 +192,7 @@ Kirigami.ApplicationWindow {
Kirigami.Action {
text: i18n("Devices")
iconName: "network-connect"
onTriggered: pageStack.layers.push("qrc:/imports/NeoChat/Page/DevicesPage.qml")
onTriggered: pushReplaceLayer("qrc:/imports/NeoChat/Page/DevicesPage.qml")
enabled: pageStack.layers.currentItem.title !== i18n("Devices") && Controller.accountCount > 0
},
Kirigami.Action {