From 89567cecfa7246b717141955eb438540cebfb41e Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Tue, 14 Nov 2017 23:19:16 +0100 Subject: [PATCH] Notifier plugin fix - NotifyOSD doesn't like too many notification objects in a queue, so just create one on init and update its contents if there is a new notification --- src/plugins/notification_notify2.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/notification_notify2.py b/src/plugins/notification_notify2.py index 90f09df3..e91d8f1b 100644 --- a/src/plugins/notification_notify2.py +++ b/src/plugins/notification_notify2.py @@ -6,8 +6,10 @@ from gi.repository import Notify Notify.init('pybitmessage') - def connect_plugin(title, subtitle, category, label, icon): if not icon: icon = 'mail-message-new' if category == 2 else 'pybitmessage' - Notify.Notification.new(title, subtitle, icon).show() + connect_plugin.notification.update(title, subtitle, icon) + connect_plugin.notification.show.show() + +connect_plugin.notification = Notify.Notification.new("Init", "Init")