mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Clear internal field after pasting
https://forums.ankiweb.net/t/copy-paste-of-screenshots-dont-work-once-i-copy-the-text-on-the-anki-app/34839
This commit is contained in:
parent
c2b1ab5eb0
commit
4bfa0d78dc
1 changed files with 1 additions and 0 deletions
|
@ -1369,6 +1369,7 @@ class EditorWebView(AnkiWebView):
|
|||
def _onPaste(self, mode: QClipboard.Mode) -> None:
|
||||
extended = self._wantsExtendedPaste()
|
||||
if html := self._internal_field_text_for_paste:
|
||||
self._internal_field_text_for_paste = None
|
||||
print("reuse internal")
|
||||
self.editor.doPaste(html, True, extended)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue