-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove notification from list if bubble dismissed; give accurate tooltip count #243
Conversation
Bumping this - any reason this PR is abandoned? Seems to be a welcome change based on the 🎉 reactions |
Re-testing this as it is old. Notice that the indicator tooltip gives an inaccurate notification count - checking if occurs in master. Yes, it does. |
I have fixed the tooltip count here, but that could be split out if necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one small question otherwise it looks good to me and can confirm it works as intended. Regarding splitting the fix i wouldn't deem it necessary but that's just my opinion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works perfectly 👍
At present if a notification bubble is actively dismissed it remains in the wingpanel list and has to be dismissed again to get rid of it. This seems unexpected. This PR removes notifications from the list if they are actively closed by the user or a "CloseNotification" method call.
It is open to question whether this should also happen in reverse i.e. urgent bubbles should disappear if cleared from the wingpanel list (at present they do not) but that is left for another PR (after hiding bubbles when the indicator is open is implemented).
There was existing code in the NotificationsMonitor that appeared to be intended to implement this already but it did not detect NotificationClosed signals.
A superfluous function/signal was removed from Notification; the Indicator detects when a notification is closed.