Push settings and aboutPage onto pagestack layers

This commit is contained in:
Tobias Fella 2020-07-04 22:31:48 +02:00
parent d59a1ef1ec
commit a321122e5c

View File

@ -36,14 +36,14 @@ Kirigami.ApplicationWindow {
Kirigami.Action { Kirigami.Action {
text: i18n("Settings") text: i18n("Settings")
iconName: "settings-configure" iconName: "settings-configure"
onTriggered: pageStack.push("qrc:/SettingsPage.qml", {"settings": _settings}) onTriggered: pageStack.layers.push("qrc:/SettingsPage.qml", {"settings": _settings})
enabled: pageStack.currentItem.title !== i18n("Settings") enabled: pageStack.layers.currentItem.title !== i18n("Settings")
}, },
Kirigami.Action { Kirigami.Action {
text: i18n("About") text: i18n("About")
iconName: "help-about-symbolic" iconName: "help-about-symbolic"
onTriggered: root.pageStack.push(aboutPage) onTriggered: pageStack.layers.push(aboutPage)
enabled: pageStack.currentItem.title !== i18n("About") enabled: pageStack.layers.currentItem.title !== i18n("About")
} }
] ]
} }