mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
OSX notifications: Revert to using Qt+Growl as the Growl python bindings apparently crash on some systems
This commit is contained in:
parent
3911e5711d
commit
2d33bab4bd
@ -23,7 +23,7 @@ class N516(USBMS):
|
||||
|
||||
VENDOR_ID = [0x0525]
|
||||
PRODUCT_ID = [0xa4a5]
|
||||
BCD = [0x323]
|
||||
BCD = [0x323, 0x326]
|
||||
|
||||
VENDOR_NAME = 'INGENIC'
|
||||
WINDOWS_MAIN_MEM = '_FILE-STOR_GADGE'
|
||||
|
@ -85,6 +85,8 @@ class QtNotifier(Notifier):
|
||||
def __call__(self, body, summary=None, replaces_id=None, timeout=0):
|
||||
timeout, body, summary = self.get_msg_parms(timeout, body, summary)
|
||||
if self.systray is not None:
|
||||
if isosx and isinstance(body, unicode):
|
||||
body = body.encode('utf-8')
|
||||
self.systray.showMessage(summary, body, self.systray.Information,
|
||||
timeout)
|
||||
|
||||
@ -127,10 +129,10 @@ def get_notifier(systray=None):
|
||||
ans = FDONotifier()
|
||||
if not ans.ok:
|
||||
ans = None
|
||||
if isosx:
|
||||
ans = GrowlNotifier()
|
||||
if not ans.ok:
|
||||
ans = None
|
||||
#if isosx:
|
||||
# ans = GrowlNotifier()
|
||||
# if not ans.ok:
|
||||
# ans = None
|
||||
if ans is None:
|
||||
ans = QtNotifier(systray)
|
||||
if not ans.ok:
|
||||
|
Loading…
x
Reference in New Issue
Block a user