mirror of https://github.com/KDE/kasts.git
Allow only one entry on the pagestack
This commit is contained in:
parent
76c61c60bb
commit
1cc71b0614
|
@ -26,6 +26,8 @@ Kirigami.SwipeListItem {
|
||||||
bold: !model.entry.read
|
bold: !model.entry.read
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
if(pageStack.depth > 2)
|
||||||
|
pageStack.pop()
|
||||||
model.entry.read = true
|
model.entry.read = true
|
||||||
pageStack.push("qrc:/EntryPage.qml", {"entry": model.entry})
|
pageStack.push("qrc:/EntryPage.qml", {"entry": model.entry})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue