mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Fix "open with" Dangerzone in macOS
This commit is contained in:
parent
c19d8aad86
commit
ccb5d85afa
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class ApplicationWrapper(QtCore.QObject):
|
||||||
# In macOS, handle the file open event
|
# In macOS, handle the file open event
|
||||||
if event.type() == QtCore.QEvent.FileOpen:
|
if event.type() == QtCore.QEvent.FileOpen:
|
||||||
# Skip file open events in dev mode
|
# Skip file open events in dev mode
|
||||||
if not sys.dangerzone_dev:
|
if not hasattr(sys, "dangerzone_dev"):
|
||||||
self.document_selected.emit(event.file())
|
self.document_selected.emit(event.file())
|
||||||
return True
|
return True
|
||||||
elif event.type() == QtCore.QEvent.ApplicationActivate:
|
elif event.type() == QtCore.QEvent.ApplicationActivate:
|
||||||
|
|
Loading…
Reference in a new issue