Browse Source

Make sure that having Growl support will not override NotifyOSD.

pull/7/merge
ShyPike 14 years ago
parent
commit
b128f4fa89
  1. 7
      sabnzbd/growler.py

7
sabnzbd/growler.py

@ -97,11 +97,12 @@ def send_notification(title , msg, gtype):
""" Send Notification message
Return '' when OK, otherwise an error string
"""
msg1 = msg2 = ""
if have_growl():
return send_growl(title, msg, gtype)
msg1 = send_growl(title, msg, gtype)
if have_ntfosd():
return send_notify_osd(title, msg)
return 'not active'
msg2 = send_notify_osd(title, msg)
return msg1 or msg2 or 'not active'
#------------------------------------------------------------------------------

Loading…
Cancel
Save