davidedmundson created this revision. davidedmundson added a reviewer: Plasma. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY Sometimes we get notifications for events that are also displayed by Plasma, giving us some rather annoying popups. This patch provides a service on the notification dataengine so that other plasmoids can block the notification applet from processing those notifications. Intended use case is for the network manager plasomid to not show a notification whilst the dialog is open, as notifications come from kded. However it's kept generic enough that other plasmoids can filter on other hints, such as category or desktop file. TEST PLAN Wrote relevant patch for plasma-nm Didn't get notification toggling a network whilst the popup was open Did after I closed the popup REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D3589 AFFECTED FILES dataengines/notifications/notificationaction.cpp dataengines/notifications/notifications.operations dataengines/notifications/notificationsengine.cpp dataengines/notifications/notificationsengine.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: davidedmundson, #plasma Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas