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
1 changed files with 4 additions and 4 deletions

View File

@ -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")
}
]
}