mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
remove image menu feature when on qt5 (#3685)
This commit is contained in:
parent
f1a5808d83
commit
ca6002fd58
1 changed files with 2 additions and 0 deletions
|
@ -1473,6 +1473,8 @@ class EditorWebView(AnkiWebView):
|
|||
self.triggerPageAction(QWebEnginePage.WebAction.CopyImageToClipboard)
|
||||
|
||||
def _opened_context_menu_on_image(self) -> bool:
|
||||
if not hasattr(self, "lastContextMenuRequest"):
|
||||
return False
|
||||
context_menu_request = self.lastContextMenuRequest()
|
||||
assert context_menu_request is not None
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue