From c0cbcc0d36c58f20d0ae063c757a53ec75d6076f Mon Sep 17 00:00:00 2001 From: Felipe Kinoshita Date: Thu, 10 Jun 2021 15:33:28 -0300 Subject: [PATCH] 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 --- smsapp/qml/main.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/smsapp/qml/main.qml b/smsapp/qml/main.qml index a4fd29422..77fff92f1 100644 --- a/smsapp/qml/main.qml +++ b/smsapp/qml/main.qml @@ -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 }) + } } } ]