Fix "open with" Dangerzone in macOS

This commit is contained in:
Micah Lee 2021-12-14 10:21:42 -08:00
parent c19d8aad86
commit ccb5d85afa
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -30,7 +30,7 @@ class ApplicationWrapper(QtCore.QObject):
# In macOS, handle the file open event
if event.type() == QtCore.QEvent.FileOpen:
# Skip file open events in dev mode
if not sys.dangerzone_dev:
if not hasattr(sys, "dangerzone_dev"):
self.document_selected.emit(event.file())
return True
elif event.type() == QtCore.QEvent.ApplicationActivate: