Commit graph

1542 commits

Author SHA1 Message Date
Damien Elmes
e0d5955261 clear audio queue when showing answer
fixes question audio playing again on answer
2017-10-25 19:00:24 +10:00
Damien Elmes
d35210c42b don't leave a wav file lying around when recording 2017-10-25 18:35:39 +10:00
Damien Elmes
4cabea6801 filter out background and font settings in internal paste
should fix
https://anki.tenderapp.com/discussions/beta-testing/842-issue-when-copy-pasting-add-edit-and-browse-windows
and
https://anki.tenderapp.com/discussions/beta-testing/840-copy-paste-in-anki-editor-causes-copied-text-to-include-redundant-tags-which-is-deterimental-to-ux-when-using-night-mode-addon

this change will of course prevent these attributes from being copied
when they were manually included in the field instead of implicitly set
on the parent - I don't see a good way to distinguish between the two
cases
2017-10-25 17:51:22 +10:00
Damien Elmes
a8298c8e96 fix shift+tab on osx again
presumably broke in upgrade to qt 5.9.2
2017-10-25 16:54:24 +10:00
Damien Elmes
d395fa04b6 delay setting q/a if previous operation is still running
fixes incorrect formatting when undoing previous review then immediately
hitting enter
2017-10-24 17:09:22 +10:00
Damien Elmes
809a873d16 fix type answer race condition
user may hit enter before the question has been written, due to fade out
delay
2017-10-24 17:08:36 +10:00
Damien Elmes
c17e717920 Revert "avoid setting modality in progress dialog"
This reverts commit 059db539a7.

seems to work correctly in qt 5.9.2
2017-10-20 13:25:38 +10:00
Damien Elmes
e0461483a2 Merge branch 'master' of github.com:dae/anki 2017-10-20 11:26:15 +10:00
Damien Elmes
664135fe4b Merge pull request #214 from krassowski/cleanup
Clean up reviewer code from unused code
2017-10-20 11:26:01 +10:00
krassowski
60270d519e Clean up reviewer code from unused code 2017-10-18 16:12:04 +00:00
Damien Elmes
ae63dfb520 fix detection of media links in paste
'.aspx' was matching the 'spx' filter
2017-10-18 21:58:36 +10:00
Damien Elmes
61cc3cec86 fix detection of media refs in cloze
https://anki.tenderapp.com/discussions/beta-testing/796-another-check-media-issue
2017-10-18 21:56:57 +10:00
Damien Elmes
ad56e7eb36 ctrl+d to deselect all in tag picker 2017-10-16 15:31:29 +10:00
Damien Elmes
5142ff0ccd don't die on _anki.png et al
https://anki.tenderapp.com/discussions/beta-testing/747-anki-210-beta-16/page/2#comment_43769227
2017-10-16 15:02:16 +10:00
Damien Elmes
3b23cdafc2 bump version 2017-10-13 13:12:36 +10:00
Damien Elmes
6a61516622 don't capture media keys 2017-10-13 13:11:22 +10:00
Damien Elmes
0fa24f4e0b probable fix for win32 startup errors; add timeout to mpv start 2017-10-13 12:14:40 +10:00
Damien Elmes
a8f4fff41a Merge pull request #213 from krassowski/shortcuts_after_web
Setup shortcuts after setting-up web.
2017-10-12 11:35:12 +10:00
krassowski
11a01a3ea0 Setup shortcuts after setting-up web. 2017-10-11 18:51:26 +00:00
Damien Elmes
f87bd23f3f bump version 2017-10-11 14:50:28 +10:00
Damien Elmes
37dc564402 bump version 2017-10-05 17:26:48 +10:00
Damien Elmes
0a95c39e65 fall back to mplayer if mpv not found or too old
ubuntu 14.04 looks to be using an ancient mpv version
2017-10-05 17:24:55 +10:00
Damien Elmes
2689d6f84c remove lodpi hack, don't assume physical DPI is always 72 2017-10-05 16:42:46 +10:00
Damien Elmes
66d701cfc4 catch errors caused by old mpv versions 2017-10-05 15:46:20 +10:00
Damien Elmes
1d0746dd03 show field numbers for easier positioning 2017-10-05 14:52:05 +10:00
Damien Elmes
445480b5df increase default number of backups; don't put in trash 2017-10-05 14:39:47 +10:00
Damien Elmes
253dcd5e1f don't show album artwork 2017-10-05 14:35:58 +10:00
Damien Elmes
1a41fbcc0a run unit tests in parallel 2017-10-05 14:17:12 +10:00
Damien Elmes
e84c42e751 user-friendly warning when mpv missing 2017-10-05 13:48:24 +10:00
Damien Elmes
80f441fa6d pass opts to main window; force zoom factor to 1 on lodpi 2017-10-03 12:12:57 +10:00
Damien Elmes
1b87a5caa0 mplayer->mpv 2017-10-02 17:24:03 +10:00
Damien Elmes
9a641432aa make sure we clear the queue when previewing attached 2017-10-02 17:21:34 +10:00
Damien Elmes
1edcafcd5d add coding: line to mpv.py for xgettext 2017-10-02 16:41:14 +10:00
Damien Elmes
fac3ee4604 bump version 2017-10-02 16:38:20 +10:00
Damien Elmes
c9aac25fba integrate _packagedCmd() into mpv for binary distrib 2017-10-02 16:37:52 +10:00
Damien Elmes
1f3cc1bd9f option to disable qt's hidpi scaling
https://anki.tenderapp.com/discussions/beta-testing/765-problem-with-the-ui-of-anki
2017-10-02 16:26:23 +10:00
Damien Elmes
28893890f5 turn off mpv debug 2017-09-30 19:33:09 +10:00
Damien Elmes
975f19b642 use named pipes for mpv on windows
currently using non-blocking mode which involves a sleep in the read
loop - overlapped i/o might be a better option in the future
2017-09-30 19:32:48 +10:00
Damien Elmes
7a3bcc62ae mpv support 2017-09-30 19:29:48 +10:00
Damien Elmes
5c4296d41c mpv.py fixes
- enable input keys for video seeking
- output debug info to stdout so it's not caught by anki's error handler
- before sending a command, check the process is still alive, and
restart if necessary - otherwise a user who closes a video window will
end up with errors
2017-09-30 19:29:48 +10:00
Damien Elmes
4f0afb0a20 add mpv.py 2017-09-30 19:29:48 +10:00
Damien Elmes
5af1d67cef fix normalization in normal import 2017-09-30 19:29:33 +10:00
Damien Elmes
1b5cba06ff normalize filenames in colpkg import 2017-09-30 19:29:21 +10:00
Damien Elmes
8cfc1e1315 stripHTML() should work when tag split over multiple lines 2017-09-30 15:33:05 +10:00
Damien Elmes
083878c305 Merge pull request #211 from krassowski/master
Allow to run App&GUI without entering the main event loop
2017-09-26 13:21:59 +10:00
krassowski
a09700bfc5 Remove test_run.py and changes introduced in .travis.yml 2017-09-23 15:03:02 +00:00
krassowski
c5720e14f9 Add docstring explaining introduced arguments of _run() 2017-09-23 15:01:29 +00:00
krassowski
70934efc6d Build GUI before running tests 2017-09-21 03:52:03 +00:00
krassowski
e3c974279c Add requirements allowing to test GUI: PyQt5 and sip. 2017-09-21 03:46:46 +00:00
krassowski
9c0f773f8b Allow to run App&GUI without entering the main event loop 2017-09-21 03:02:39 +00:00