mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
More stupid PyQt enums
This commit is contained in:
parent
2bb1f38fd6
commit
98d34f057a
@ -124,6 +124,7 @@ class QtNotifier(Notifier):
|
||||
|
||||
def __call__(self, body, summary=None, replaces_id=None, timeout=0):
|
||||
timeout, body, summary = self.get_msg_parms(timeout, body, summary)
|
||||
from PyQt5.Qt import QSystemTrayIcon
|
||||
if self.systray is not None:
|
||||
try:
|
||||
hide = False
|
||||
@ -133,7 +134,7 @@ class QtNotifier(Notifier):
|
||||
if ismacos and not self.systray.isVisible():
|
||||
self.systray.show()
|
||||
hide = True
|
||||
self.systray.showMessage(summary, body, self.systray.Information,
|
||||
self.systray.showMessage(summary, body, QSystemTrayIcon.MessageIcon.Information,
|
||||
timeout)
|
||||
finally:
|
||||
if hide:
|
||||
|
Loading…
x
Reference in New Issue
Block a user