mirror of https://github.com/KDE/kasts.git
Make sure that queue status of items is correct
This commit is contained in:
parent
7113b23530
commit
f5930c8399
|
@ -325,6 +325,7 @@ void DataManager::addToQueue(const QString &feedurl, const QString &id)
|
|||
|
||||
// Make sure that the QueueModel is aware of the changes
|
||||
Q_EMIT queueEntryAdded(index, id);
|
||||
Q_EMIT getEntry(id)->queueStatusChanged(true);
|
||||
}
|
||||
|
||||
void DataManager::moveQueueItem(const int &from, const int &to)
|
||||
|
@ -361,6 +362,7 @@ void DataManager::removeQueueItem(const int &index)
|
|||
|
||||
// Make sure that the QueueModel is aware of the change so it can update
|
||||
Q_EMIT queueEntryRemoved(index, id);
|
||||
Q_EMIT getEntry(id)->queueStatusChanged(false);
|
||||
}
|
||||
|
||||
void DataManager::removeQueueItem(const QString id)
|
||||
|
|
|
@ -117,7 +117,11 @@ Kirigami.SwipeListItem {
|
|||
// only mark pure rss feeds as read + not new;
|
||||
// podcasts should only be marked read once they have been listened to, and only
|
||||
// marked as non-new once they've been downloaded
|
||||
if (!entry.enclosure) { entry.read = true; entry.new = false;}
|
||||
if (!entry.enclosure) {
|
||||
entry.read = true;
|
||||
entry.new = false;
|
||||
}
|
||||
lastEntry = entry;
|
||||
pageStack.push("qrc:/EntryPage.qml", {"entry": entry})
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,8 @@ Kirigami.ScrollablePage {
|
|||
id: queuepage
|
||||
title: i18n("Queue")
|
||||
|
||||
property var lastEntry: ""
|
||||
|
||||
supportsRefreshing: true
|
||||
onRefreshingChanged:
|
||||
if(refreshing) {
|
||||
|
|
Loading…
Reference in New Issue