[preview] Open file directly if encrypted
If Open Link in Browser is selected as default action for left clicking an image, the user would get a warning when clicking an encrypted image. Fall back to open image directly instead of issuing a warning dialog.
This commit is contained in:
committed by
Philipp Hörist
parent
4901c1e1b7
commit
e4c7c446fc
@@ -680,12 +680,7 @@ class Base(object):
|
||||
def _on_open_link_in_browser_menuitem_activate(self, menu, data):
|
||||
url = data["url"]
|
||||
if data["encrypted"]:
|
||||
dialogs.ErrorDialog(
|
||||
_('Encrypted file'),
|
||||
_('You cannot open encrypted files in your '
|
||||
'browser directly. Try "Open Downloaded File '
|
||||
'in Browser" instead.'),
|
||||
transient_for=app.app.get_active_window())
|
||||
self._on_open_menuitem_activate(self, data)
|
||||
else:
|
||||
helpers.open_uri(url)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user