mirror of
https://github.com/borgbase/vorta
synced 2025-01-03 13:45:49 +00:00
Limit objc dependency. Fix maximize issue.
This commit is contained in:
parent
20ab578a17
commit
57c0c4d47b
2 changed files with 3 additions and 2 deletions
|
@ -38,7 +38,7 @@ install_requires =
|
||||||
keyring
|
keyring
|
||||||
apscheduler
|
apscheduler
|
||||||
sentry-sdk
|
sentry-sdk
|
||||||
pyobjc-framework-Cocoa
|
pyobjc-framework-Cocoa; sys_platform == 'darwin'
|
||||||
tests_require =
|
tests_require =
|
||||||
pytest
|
pytest
|
||||||
pytest-qt
|
pytest-qt
|
||||||
|
|
|
@ -25,7 +25,8 @@ def deliver(self, title, text):
|
||||||
notification.setTitle_(title)
|
notification.setTitle_(title)
|
||||||
notification.setInformativeText_(text)
|
notification.setInformativeText_(text)
|
||||||
center = NSUserNotificationCenter.defaultUserNotificationCenter()
|
center = NSUserNotificationCenter.defaultUserNotificationCenter()
|
||||||
center.deliverNotification_(notification)
|
if center is not None: # Only works when run from app bundle.
|
||||||
|
center.deliverNotification_(notification)
|
||||||
|
|
||||||
|
|
||||||
class LinuxNotifications(VortaNotifications):
|
class LinuxNotifications(VortaNotifications):
|
||||||
|
|
Loading…
Reference in a new issue