mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
67b7e9dce3
commit
9d25832518
@ -85,6 +85,7 @@ class QtNotifier(Notifier):
|
|||||||
def __call__(self, body, summary=None, replaces_id=None, timeout=0):
|
def __call__(self, body, summary=None, replaces_id=None, timeout=0):
|
||||||
timeout, body, summary = self.get_msg_parms(timeout, body, summary)
|
timeout, body, summary = self.get_msg_parms(timeout, body, summary)
|
||||||
if self.systray is not None:
|
if self.systray is not None:
|
||||||
|
try:
|
||||||
hide = False
|
hide = False
|
||||||
try:
|
try:
|
||||||
if not isinstance(body, unicode):
|
if not isinstance(body, unicode):
|
||||||
@ -97,6 +98,8 @@ class QtNotifier(Notifier):
|
|||||||
finally:
|
finally:
|
||||||
if hide:
|
if hide:
|
||||||
self.systray.hide()
|
self.systray.hide()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
class GrowlNotifier(Notifier):
|
class GrowlNotifier(Notifier):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user