mirror of
https://github.com/KDE/kasts.git
synced 2025-01-29 00:30:03 +01:00
Close entrypage when removing that item from queue when in queuepage
This commit is contained in:
parent
b2dd9961ed
commit
05e03d20e3
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -121,7 +121,7 @@ Kirigami.SwipeListItem {
|
||||
entry.read = true;
|
||||
entry.new = false;
|
||||
}
|
||||
lastEntry = entry;
|
||||
lastEntry = entry.id;
|
||||
pageStack.push("qrc:/EntryPage.qml", {"entry": entry})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user