Mercurial > libervia-backend
diff frontends/src/primitivus/primitivus @ 2008:8a749ec21c50
primitivus: fixed notifications counter for simple messages in MUC rooms
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 17 Jul 2016 17:12:42 +0200 |
parents | dbe025b03eba |
children | 53587e738aca |
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus Sun Jul 17 16:47:33 2016 +0200 +++ b/frontends/src/primitivus/primitivus Sun Jul 17 17:12:42 2016 +0200 @@ -606,7 +606,8 @@ # we ignore notification if the widget is selected but we can # still do a desktop notification is the X window has not the focus super(PrimitivusApp, self).notify(type_, entity, message, subject, callback, cb_args, widget, profile) - if not self.x_notify.hasFocus(): + # we don't want notifications without message on desktop + if message is not None and not self.x_notify.hasFocus(): if message is None: message = _("{app}: a new event has just happened{entity}").format( app=C.APP_NAME,