Commit c0cbcc0d authored by Felipe Kinoshita's avatar Felipe Kinoshita 🌎 Committed by Nicolas Fella
Browse files

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
parent 0d697a64
Pipeline #66095 canceled with stage
...@@ -33,10 +33,12 @@ Kirigami.ApplicationWindow ...@@ -33,10 +33,12 @@ Kirigami.ApplicationWindow
actions: [ actions: [
Kirigami.Action { Kirigami.Action {
text: i18nd("kdeconnect-sms", "About...") text: i18nd("kdeconnect-sms", "About")
icon.name: "help-about" icon.name: "help-about"
onTriggered: { onTriggered: {
applicationWindow().pageStack.push(aboutPageComponent, { aboutData: aboutData }); if (applicationWindow().pageStack.layers.depth < 2) {
applicationWindow().pageStack.layers.push(aboutPageComponent, { aboutData: aboutData })
}
} }
} }
] ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment