mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Increase delay for mutter
It's a nasty hack, and would be nice if we could easily limit it to users who are using Mutter.
This commit is contained in:
parent
b5cca03d09
commit
10fd465edb
1 changed files with 4 additions and 2 deletions
|
@ -1401,8 +1401,10 @@ class EditorWebView(AnkiWebView):
|
|||
clip.setMimeData(mime)
|
||||
|
||||
# Mutter bugs out if the clipboard data is mutated in the clipboard change
|
||||
# hook, so we need to do it after a small delay
|
||||
aqt.mw.progress.timer(10, after_delay, False, parent=self)
|
||||
# hook, so we need to do it after a delay. Initially 10ms appeared to be
|
||||
# enough, but we've had a recent report than 175ms+ was required on their
|
||||
# system.
|
||||
aqt.mw.progress.timer(300 if is_lin else 10, after_delay, False, parent=self)
|
||||
|
||||
def contextMenuEvent(self, evt: QContextMenuEvent) -> None:
|
||||
m = QMenu(self)
|
||||
|
|
Loading…
Reference in a new issue