Show mod details page in same window
This commit is contained in:
parent
a757e31cee
commit
79ef083231
2 changed files with 7 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ Kirigami.ApplicationWindow {
|
|||
|
||||
title: "Leek"
|
||||
|
||||
pageStack.columnView.columnResizeMode: Kirigami.ColumnView.SingleColumn
|
||||
pageStack.initialPage: Kirigami.ScrollablePage {
|
||||
title: "Mods"
|
||||
|
||||
|
|
@ -26,7 +27,7 @@ Kirigami.ApplicationWindow {
|
|||
required property QMod mod
|
||||
|
||||
showClickFeedback: true
|
||||
onClicked: pageStack.pushDialogLayer(Qt.resolvedUrl("ModPage.qml"), {mod: mod})
|
||||
onClicked: pageStack.push(Qt.resolvedUrl("ModPage.qml"), {mod: mod})
|
||||
|
||||
// headerOrientation: Qt.Horizontal
|
||||
contentItem: Item {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,11 @@ Kirigami.Page {
|
|||
|
||||
title: "Local mod"
|
||||
|
||||
onBackRequested: (event) => {
|
||||
event.accepted = true
|
||||
applicationWindow().pageStack.pop()
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors {
|
||||
top: parent.top
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue