rename job
This commit is contained in:
parent
da4acf9044
commit
ffb4045caf
2 changed files with 30 additions and 6 deletions
4
.github/workflows/rssguard.yml
vendored
4
.github/workflows/rssguard.yml
vendored
|
@ -70,8 +70,8 @@ jobs:
|
||||||
./rssguard-build/rssguard-*mac64.dmg
|
./rssguard-build/rssguard-*mac64.dmg
|
||||||
./rssguard-build/rssguard-*linux64.AppImage
|
./rssguard-build/rssguard-*linux64.AppImage
|
||||||
|
|
||||||
dist_binaries:
|
dist-binaries:
|
||||||
name: Distribute binaries
|
name: distribute-binaries
|
||||||
needs:
|
needs:
|
||||||
- build-rssguard
|
- build-rssguard
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
|
@ -775,6 +775,14 @@ bool ServiceRoot::onAfterSetMessagesRead(RootItem* selected_item,
|
||||||
Q_UNUSED(messages)
|
Q_UNUSED(messages)
|
||||||
Q_UNUSED(read)
|
Q_UNUSED(read)
|
||||||
|
|
||||||
|
// TODO: We know that some messages were marked as read or unread, therefore we do not need to recount
|
||||||
|
// all items, but only some:
|
||||||
|
// - feeds of those messages (if recycle bin is NOT selected)
|
||||||
|
// - recycle bin (if recycle bin IS selected)
|
||||||
|
// - important articles (if some messages IS important AND recycle bin is NOT selected)
|
||||||
|
// - unread articles (if some messages IS unread AND recycle bin is NOT selected)
|
||||||
|
// - labels assigned to articles (if recycle bin is NOT selected)
|
||||||
|
|
||||||
updateCounts(true);
|
updateCounts(true);
|
||||||
itemChanged(getSubTree());
|
itemChanged(getSubTree());
|
||||||
return true;
|
return true;
|
||||||
|
@ -815,8 +823,16 @@ bool ServiceRoot::onAfterSwitchMessageImportance(RootItem* selected_item, const
|
||||||
Q_UNUSED(selected_item)
|
Q_UNUSED(selected_item)
|
||||||
Q_UNUSED(changes)
|
Q_UNUSED(changes)
|
||||||
|
|
||||||
updateCounts(true);
|
// NOTE: We know that some messages were marked as starred or unstarred. Starred count
|
||||||
itemChanged(getSubTree());
|
// is not displayed anywhere in feed list except "Important articles" item.
|
||||||
|
auto in = importantNode();
|
||||||
|
|
||||||
|
if (in != nullptr) {
|
||||||
|
|
||||||
|
in->updateCounts(true);
|
||||||
|
itemChanged({in});
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -830,6 +846,14 @@ bool ServiceRoot::onAfterMessagesDelete(RootItem* selected_item, const QList<Mes
|
||||||
Q_UNUSED(selected_item)
|
Q_UNUSED(selected_item)
|
||||||
Q_UNUSED(messages)
|
Q_UNUSED(messages)
|
||||||
|
|
||||||
|
// TODO: We know that some messages were deleted, therefore we do not need to recount
|
||||||
|
// all items, but only some:
|
||||||
|
// - feeds of those messages (if recycle bin is NOT selected)
|
||||||
|
// - recycle bin (if recycle bin IS selected)
|
||||||
|
// - important articles (if some message IS important AND recycle bin is NOT selected)
|
||||||
|
// - unread articles (if some messages IS unread AND if recycle bin is NOT selected)
|
||||||
|
// - labels assigned to articles (if recycle bin is NOT selected)
|
||||||
|
|
||||||
updateCounts(true);
|
updateCounts(true);
|
||||||
itemChanged(getSubTree());
|
itemChanged(getSubTree());
|
||||||
return true;
|
return true;
|
||||||
|
@ -855,9 +879,9 @@ bool ServiceRoot::onAfterLabelMessageAssignmentChanged(const QList<Label*>& labe
|
||||||
Q_UNUSED(messages)
|
Q_UNUSED(messages)
|
||||||
Q_UNUSED(assign)
|
Q_UNUSED(assign)
|
||||||
|
|
||||||
boolinq::from(labels).for_each([](Label* lbl) {
|
for (Label* lbl : labels) {
|
||||||
lbl->updateCounts(true);
|
lbl->updateCounts(true);
|
||||||
});
|
};
|
||||||
|
|
||||||
auto list = boolinq::from(labels)
|
auto list = boolinq::from(labels)
|
||||||
.select([](Label* lbl) {
|
.select([](Label* lbl) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue