Push settings and aboutPage onto pagestack layers
This commit is contained in:
parent
d59a1ef1ec
commit
a321122e5c
@ -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")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user