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
This commit is contained in:
Peter Šurda 2017-11-14 23:19:16 +01:00
parent d6e94cf77f
commit 89567cecfa
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
1 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,10 @@ from gi.repository import Notify
def connect_plugin(title, subtitle, category, label, icon):
if not icon:
icon = 'mail-message-new' if category == 2 else 'pybitmessage', subtitle, icon).show()
connect_plugin.notification.update(title, subtitle, icon)
connect_plugin.notification ="Init", "Init")