anki/qt/aqt/browser
Hikaru Y 12ccdee25b
Fix some issues with closing previewer (#1563)
* Fix media playback not terminating when previewer is closed

https://forums.ankiweb.net/t/anki-2-1-50-beta/15608/78

* Fix _on_preview_closed being called twice unnecessarily

The function was being called twice when the preview button is clicked
while the previewer is open.

* Fix console error caused by leftover code

The following error was shown in the console when closing previewer:
`Uncaught TypeError: Cannot read property 'classList' of null`

* Toggle state of preview button via 'active' prop
2021-12-20 20:23:50 +10:00
..
sidebar update platform checks (eg isWin -> is_win) + devMode 2021-11-25 09:06:16 +10:00
table update platform checks (eg isWin -> is_win) + devMode 2021-11-25 09:06:16 +10:00
__init__.py new change notetype implementation for the frontend 2021-06-10 22:19:24 +10:00
browser.py Fix some issues with closing previewer (#1563) 2021-12-20 20:23:50 +10:00
card_info.py Fix memory leak in AnkiWebView (#1510) 2021-11-29 12:31:37 +10:00
find_and_replace.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
find_duplicates.py switch to new-style PyQt scoped enums and Qt6 2021-10-15 12:57:19 +10:00
previewer.py Allow <audio> to play without user interaction in accordance to autoplay setting v2 (#1539) 2021-12-08 08:08:56 +10:00