Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
the recently introduced
dismiss --no-history
feature is very helpful to me.However, afaics, it's only usable when clicking the notification itself, not through the dbus API (or I'm blind) - and therefore neither with
makoctl
.I tried to get familiar with the codebase to add a parameter for dbus calls and it seems a bit weird to me.
For my elaboration, I'd like to exclude
DismissAllNotifications()
, as this one is self-explanatory.For the rest, there are currently 3 function signatures for 4 situations.
If there's an ID given,
DismissNotification()
is used to dismiss whole groups as well, notDismissGroupNotifications()
.I drafted a proposal of what would be easier to understand IMHO1:
I've implemented this draft in the given PR.
Features/use cases:
I'm aware of the implications an API change could entail and I haven't been involved in this project. I don't claim to say that change would make sense here, I'd just like to ask
Footnotes
of course, with 2 params it would also be possible to handle all those cases in one function (e.g. id=0 for last), but I'm not sure if this would go too far. ↩