Make sure that queue status of items is correct

This commit is contained in:
Bart De Vries 2021-04-16 10:34:00 +02:00
parent 7113b23530
commit f5930c8399
3 changed files with 9 additions and 1 deletions

View File

@ -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)

View File

@ -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})
}

View File

@ -16,6 +16,8 @@ Kirigami.ScrollablePage {
id: queuepage
title: i18n("Queue")
property var lastEntry: ""
supportsRefreshing: true
onRefreshingChanged:
if(refreshing) {