Close entrypage when removing that item from queue when in queuepage

This commit is contained in:
Bart De Vries 2021-04-16 22:09:32 +02:00
parent b2dd9961ed
commit 05e03d20e3
2 changed files with 8 additions and 1 deletions

View File

@ -84,6 +84,13 @@ Kirigami.ScrollablePage {
entry.queueStatus = true
} else {
entry.queueStatus = false
if (pageStack.depth > 1) {
if (pageStack.get(0).lastEntry) {
if (pageStack.get(0).lastEntry === entry.id) {
pageStack.pop()
}
}
}
}
}
}

View File

@ -121,7 +121,7 @@ Kirigami.SwipeListItem {
entry.read = true;
entry.new = false;
}
lastEntry = entry;
lastEntry = entry.id;
pageStack.push("qrc:/EntryPage.qml", {"entry": entry})
}