Push a new layer when entering About Page in the SMS App

This commit replaces `pageStack.push...` to `pageStack.layers.push...`
when entering the About Page in the SMS App.

BUG: 423932
This commit is contained in:
Felipe Kinoshita 2021-06-10 15:33:28 -03:00 committed by Nicolas Fella
parent 0d697a6452
commit c0cbcc0d36

View file

@ -33,10 +33,12 @@ Kirigami.ApplicationWindow
actions: [
Kirigami.Action {
text: i18nd("kdeconnect-sms", "About...")
text: i18nd("kdeconnect-sms", "About")
icon.name: "help-about"
onTriggered: {
applicationWindow().pageStack.push(aboutPageComponent, { aboutData: aboutData });
if (applicationWindow().pageStack.layers.depth < 2) {
applicationWindow().pageStack.layers.push(aboutPageComponent, { aboutData: aboutData })
}
}
}
]