Merge pull request #2851 from sarg/fix-notifications
mu4e-notification: ignore dbus errors
This commit is contained in:
@ -73,9 +73,11 @@ zero."
|
|||||||
(when-let* ((fav (mu4e-bookmark-favorite))
|
(when-let* ((fav (mu4e-bookmark-favorite))
|
||||||
(delta-unread (plist-get fav :delta-unread)))
|
(delta-unread (plist-get fav :delta-unread)))
|
||||||
(when (and (fboundp 'notifications-close-notification)
|
(when (and (fboundp 'notifications-close-notification)
|
||||||
|
(fboundp 'dbus-ignore-errors)
|
||||||
mu4e--notification-id
|
mu4e--notification-id
|
||||||
(zerop delta-unread))
|
(zerop delta-unread))
|
||||||
(notifications-close-notification mu4e--notification-id)
|
(dbus-ignore-errors
|
||||||
|
(notifications-close-notification mu4e--notification-id))
|
||||||
(setq mu4e--notification-id nil))
|
(setq mu4e--notification-id nil))
|
||||||
(when (and (> delta-unread 0)
|
(when (and (> delta-unread 0)
|
||||||
(not (= delta-unread mu4e--last-delta-unread)))
|
(not (= delta-unread mu4e--last-delta-unread)))
|
||||||
|
|||||||
Reference in New Issue
Block a user