Fabian Wood
d27e33a206
Fixed runtime error from changes in qt addons.py
...
Changes to meet returning of Iterable (rather than List), meant
returning a different variable, but that may not have been created.
Reverted, changing to return List.
2020-08-01 17:50:37 +10:00
Fabian Wood
3da0737a57
Updated qt addons with more extensive typehints
2020-08-01 15:50:27 +10:00
Damien Elmes
a8139ebb40
force stdout/stderr encoding to utf8
...
As a GUI app, Anki only uses these for debugging info, and we've been
bitten numerous times in the past by bugs caused by printing Unicode
when the console only supported ASCII. An ens var might have been
a better approach, but Pyinstaller does not support defining them before
Python is initialized from what I can tell.
Latest issue:
https://forums.ankiweb.net/t/crashing-anki-version-2-1-29-bbff62bf/1650
2020-08-01 11:31:22 +10:00
Damien Elmes
07594bc375
fix mature cutoff in reviews graph
...
https://forums.ankiweb.net/t/statistics-bugs-after-update-2-1-5-to-2-1-29/1620/4
2020-08-01 11:27:24 +10:00
Damien Elmes
1353590a92
move card counts tooltip into permanent table
2020-07-31 17:19:31 +10:00
Damien Elmes
710127d490
fix moves into/out of a filtered deck not syncing
...
the mtime comparison should have only been done if the object in the
local collection was also pending
2020-07-31 15:39:30 +10:00
Damien Elmes
06a0b1ee73
pass night mode into body_class() instead of changing globally
2020-07-31 14:47:17 +10:00
Damien Elmes
e2425d3b0d
remove 'invert', as night mode is on when checkbox is on
2020-07-31 14:35:18 +10:00
Damien Elmes
1a1919b6ac
title case
2020-07-31 14:24:08 +10:00
Damien Elmes
efc19a32a0
fix button display on Macs
2020-07-31 14:23:56 +10:00
Damien Elmes
6de9030680
bust cache again
2020-07-31 14:15:55 +10:00
Damien Elmes
ec05670fe4
Merge pull request #717 from ANH25/master
...
Add night mode and mobile class toggles in card layout screen
2020-07-31 14:15:25 +10:00
Damien Elmes
0ed50394e7
Merge branch 'master' into master
2020-07-31 14:14:10 +10:00
Damien Elmes
bcc35c1822
Merge pull request #720 from mkrump/help-wanted-4-add-type-hints-6
...
Turn on check_untyped_defs for aqt.webview, aqt.addons and aqt.emptycards.
2020-07-31 14:08:48 +10:00
Damien Elmes
f497682e9b
Merge branch 'master' into help-wanted-4-add-type-hints-6
2020-07-31 14:07:59 +10:00
Damien Elmes
628d961ad6
Merge pull request #719 from ANH25/reviewer-hooks
...
Add reviewer_will_play_question_sounds and reviewer_will_play_answer_sounds hooks
2020-07-31 14:06:28 +10:00
Damien Elmes
e759e6ef83
Merge pull request #718 from phwoo/typehints-for-qt-profiles
...
Added typehints for qt profiles
2020-07-31 14:04:29 +10:00
Damien Elmes
0edb043f53
i18n some card template strings
...
https://forums.ankiweb.net/t/untranslated-strings/1623
2020-07-31 13:33:41 +10:00
Damien Elmes
2bcf9a82d1
fix missing translations in export screen
...
https://forums.ankiweb.net/t/untranslated-strings/1623
2020-07-31 13:33:41 +10:00
Damien Elmes
469272659f
fix hour graph not handling timezones west of UTC
...
https://forums.ankiweb.net/t/statistics-bugs-after-update-2-1-5-to-2-1-29/1620
2020-07-31 13:33:41 +10:00
Damien Elmes
02424ac789
tweaks to print view of graphs
2020-07-31 13:33:41 +10:00
Damien Elmes
cd72d6807a
refresh tag list after clearing unused
2020-07-31 13:33:41 +10:00
Damien Elmes
3aba7c0eee
tweak card template message
...
also shown when importing an invalid file
https://anki.tenderapp.com/discussions/private/4937-importing-decks
2020-07-31 13:33:41 +10:00
Damien Elmes
f7a7c95fc0
fix early reviews not appearing in graph
...
https://forums.ankiweb.net/t/differences-between-new-and-old-stats-2-1-28/1602
2020-07-31 13:33:41 +10:00
ANH
9b0d509e74
just forgot to regenerate gui_hooks.py to fix typo
2020-07-31 04:47:31 +03:00
ANH
6df4cf765e
fix typo
2020-07-31 04:41:49 +03:00
Matt Krump
10f2f9c037
Turn on check_untyped_defs for aqt.emptycards
2020-07-30 18:43:57 -06:00
Matt Krump
7d8f856060
Turn on check_untyped_defs for aqt.addons
2020-07-30 18:43:57 -06:00
Matt Krump
a56690bc08
Turn on check_untyped_defs for aqt.webview
2020-07-30 18:43:57 -06:00
ANH
b4604873c4
document hooks
2020-07-31 03:06:13 +03:00
ANH
b4b12f1642
add reviewer_will_play_question_sounds and reviewer_will_play_answer_sounds hooks
2020-07-30 22:20:19 +03:00
ANH
43620b0a30
use 'Preview Settings' as a label for the new options button
2020-07-30 18:04:50 +03:00
Fabian Wood
79e8076685
Added typehints for qt profiles
...
* `Any` used for pickle methods, this could probably be improved
with some kind of Callable
* str used for self.base, though this may be a problem for
different OSes. Some type of os.PathLike might be good.
* Line 75, type ignored: mypy was complaining about no. of args,
and kwargs there didn't seem to be needed. Separate issue to test,
though.
2020-07-31 00:56:48 +10:00
ANH
03a80e596a
add night mode and mobile class toggles in card layout screen
2020-07-30 15:39:02 +03:00
Damien Elmes
215413ce25
Merge pull request #715 from phwoo/typehints-for-qt-modelchooser
...
Added typehints to qt/aqt/modelchooser.py, updated qt/mypy.ini
2020-07-30 17:00:58 +10:00
Damien Elmes
1c7aa152a6
Merge pull request #716 from phwoo/patch-1
...
minor edit to fix author check
2020-07-30 17:00:41 +10:00
phwoo
9aa8a12951
minor edit to fix author check
...
See https://github.com/ankitects/anki/pull/715#issuecomment-666143800
2020-07-30 16:56:24 +10:00
Damien Elmes
2926beb47b
Merge pull request #714 from phwoo/add-type-hints-for-qt-models
...
added type hints for qt models
2020-07-30 16:07:32 +10:00
Damien Elmes
f52a25d80a
Merge branch 'master' into add-type-hints-for-qt-models
2020-07-30 16:05:55 +10:00
Damien Elmes
7d6aed7849
Merge pull request #712 from aplaice/old_media_file_extensions
...
Re-add previously supported file extensions for media
2020-07-30 16:03:41 +10:00
Fabian Wood
c4f9bf62fd
added typehints to modelchooser, updated mypy.ini
2020-07-30 15:25:25 +10:00
Fabian Wood
04d09ed2ed
updated CONTRIBUTORS
2020-07-30 13:29:05 +10:00
Fabian Wood
e49a00fdeb
added type hints to qt models
2020-07-30 13:28:52 +10:00
Damien Elmes
4b4e64e7c1
bust CI cache to hopefully fix Mac build issue
2020-07-30 09:44:23 +10:00
Damien Elmes
f9891da076
handle preview cards in graphs
2020-07-30 09:11:18 +10:00
Damien Elmes
a1866e72fd
handle preview repeat in deck list
2020-07-30 09:11:13 +10:00
Adam Plaice
d6fb4acd38
Re-add previously supported file extensions for media
...
(They had been removed in 2ae342592c
).
2020-07-29 15:08:33 +02:00
Damien Elmes
186ff1f185
pin pytest due to pylint issue
2020-07-29 14:52:45 +10:00
Damien Elmes
93ada5d374
Merge pull request #703 from ANH25/master
...
fix help-wanted#13
2020-07-29 14:14:57 +10:00
Damien Elmes
98679d6188
Merge pull request #711 from mkrump/help-wanted-4-add-type-hints-5
...
Turn on check_untyped_defs for aqt.editor and aqt.exporting
2020-07-29 13:59:13 +10:00