From a321122e5cb2512b8473eddf8b21752bb0708cb7 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 4 Jul 2020 22:31:48 +0200 Subject: [PATCH] Push settings and aboutPage onto pagestack layers --- src/qml/main.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index 7049b89e..89c9f40e 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -36,14 +36,14 @@ Kirigami.ApplicationWindow { Kirigami.Action { text: i18n("Settings") iconName: "settings-configure" - onTriggered: pageStack.push("qrc:/SettingsPage.qml", {"settings": _settings}) - enabled: pageStack.currentItem.title !== i18n("Settings") + onTriggered: pageStack.layers.push("qrc:/SettingsPage.qml", {"settings": _settings}) + enabled: pageStack.layers.currentItem.title !== i18n("Settings") }, Kirigami.Action { text: i18n("About") iconName: "help-about-symbolic" - onTriggered: root.pageStack.push(aboutPage) - enabled: pageStack.currentItem.title !== i18n("About") + onTriggered: pageStack.layers.push(aboutPage) + enabled: pageStack.layers.currentItem.title !== i18n("About") } ] }