Skip to content
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

Replace the previously sent desktop notification instead of sending a new one during the check function #134

Merged
merged 2 commits into from
Mar 24, 2024

Conversation

Antiz96
Copy link
Owner

@Antiz96 Antiz96 commented Mar 24, 2024

This PR aims to improve the current notification behavior by replacing the previously sent desktop notification (instead of sending a new one) during the check function, to avoid having notifications stacking over time if they are not cleared.

With this new behavior, Arch-Update will send new notifications by replacing the ID of the previous one, acting as an "update" of the previously sent notification instead of simply sending a new one. Thanks to this, Arch-Update will only show one (and only one) notification in the notification history/center (being updated on the fly if needed).
Of course, when a notification is being updated (if there is a new update available), it is still pushed/shown to the user just like if a new one has been sent.

Closes #133

@Antiz96 Antiz96 added the feature/request New feature or request label Mar 24, 2024
@Antiz96 Antiz96 added this to the v1.14.1 milestone Mar 24, 2024
Copy link
Owner Author

@Antiz96 Antiz96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Antiz96 Antiz96 merged commit 8f26723 into main Mar 24, 2024
1 check passed
@Antiz96 Antiz96 deleted the replace_last_notif branch March 24, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/request New feature or request
Projects
None yet
1 participant