Bug 420520

Summary: Tray icon is visible on startup even if there are no unread articles
Product: [Applications] akregator Reporter: Yamashita Ren <lemaitre.dulotus>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: aloisio, jaromir.smrcek
Priority: NOR    
Version: GIT (master)   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=318193
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Yamashita Ren 2020-04-24 20:40:01 UTC
The Akregator indicator need a way to accurately show if there are items to read.

Currently :
When you start Akregator, whether are unread items or not, its indicator is always visible in the notification area (indicator parameter is "shown when relevant").

The indicator becomes hidden ONLY if there are some unread items in Akregator and you read them all.
The indicator does NOT start hidden if there are no items to read when you start Akregator.

Fix required :
1) Akregator needs to use another icon when there are no items to read.
or
2) Akregator needs to have its indicator hidden in the notification area when it is started, if there are no items to read.

System :
Kubuntu 20.04
KDE Plasma 5.18.4
KDE Frameworks 5.68.0
Qt 5.12.8
Comment 1 Yamashita Ren 2020-04-24 20:45:44 UTC
Related to https://bugs.kde.org/show_bug.cgi?id=377485
Comment 2 Luigi Baldoni 2020-10-04 09:29:46 UTC
Is there a patch that fixes just this without reintroducing the unread count?
Comment 3 Luigi Baldoni 2020-10-07 19:30:33 UTC
@Jaromir, do you think it might be possible to adapt your patch to this use case?
Comment 4 Bug Janitor Service 2020-12-29 22:16:07 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/akregator/-/merge_requests/7
Comment 5 Laurent Montel 2021-01-11 18:53:09 UTC
Git commit ea04b62a2312c6e895257ec1c91292a5b6631feb by Laurent Montel, on behalf of Luigi Baldoni.
Committed on 11/01/2021 at 18:52.
Pushed by mlaurent into branch 'master'.

Fix Bug 420520 - tray icon always shown

(thanks @Jari Kuittinen)

M  +1    -3    src/akregator_part.cpp
M  +11   -1    src/trayicon.cpp
M  +4    -0    src/trayicon.h

https://invent.kde.org/pim/akregator/commit/ea04b62a2312c6e895257ec1c91292a5b6631feb