Allow only one entry on the pagestack

This commit is contained in:
Tobias Fella 2020-10-22 14:29:54 +02:00
parent 76c61c60bb
commit 1cc71b0614
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ Kirigami.SwipeListItem {
bold: !model.entry.read
onClicked: {
if(pageStack.depth > 2)
pageStack.pop()
model.entry.read = true
pageStack.push("qrc:/EntryPage.qml", {"entry": model.entry})
}