mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
Fix copying text to external apps when running on Gnome
Mutter seems to get confused if we mutate the keyboard in dataChanged(). Closes #1799
This commit is contained in:
parent
8ccadd96e6
commit
24ab8ac423
1 changed files with 1 additions and 1 deletions
|
@ -1343,7 +1343,7 @@ class EditorWebView(AnkiWebView):
|
|||
return
|
||||
html = mime.html()
|
||||
mime.setHtml(f"<!--anki-->{html}")
|
||||
clip.setMimeData(mime)
|
||||
aqt.mw.progress.timer(10, lambda: clip.setMimeData(mime), False, parent=self)
|
||||
|
||||
def contextMenuEvent(self, evt: QContextMenuEvent) -> None:
|
||||
m = QMenu(self)
|
||||
|
|
Loading…
Reference in a new issue