Commit graph

2234 commits

Author SHA1 Message Date
Shan Rauf
cddd9a9dd8 Fix readme.development typo 2019-07-29 02:10:34 -07:00
Damien Elmes
da533b3854 Merge pull request #318 from wgreven/single-config-file-for-colors
Allow configuring Anki's color scheme using a single config file on Linux
2019-07-22 10:51:51 +10:00
Damien Elmes
a7b33ad234 remove open backup folder link
https://anki.tenderapp.com/discussions/ankidesktop/35084-crash-while-trying-to-revert-to-a-backup
2019-07-22 10:49:22 +10:00
Wilco Greven
eec70c9d17 Set applicationName and desktopFileName before instantiating the application.
When these are set after instantiating the application Anki will load both
$XDG CONFIG HOME/.config/Ankirc and $XDG CONFIG HOME/.config/ankirc.
2019-07-20 13:10:59 +02:00
Damien Elmes
8f280d3bc9 Merge pull request #317 from wgreven/fix-window-icon-on-wayland
Show the correct window icon when running on Wayland
2019-07-19 08:37:50 +10:00
Wilco Greven
6585967799 Set the desktop file name.
Otherwise, on Wayland, Anki will look for python3.desktop This fixes the window icon.
2019-07-18 23:14:34 +02:00
Damien Elmes
edabdd0e74 Merge pull request #316 from vi3itor/master
Remove outdated pyqt mentions from README.development
2019-07-17 18:45:04 +10:00
Damien Elmes
e02e6d2c14 display a more helpful message when base folder not readable in startup 2019-07-17 17:23:22 +10:00
Victor Khaustov
f2e741ad62 remove outdated pyqt mentions from Mac section 2019-07-15 12:18:57 +09:00
Damien Elmes
54ba318171 cleanup recording on cancel 2019-07-14 11:19:29 +10:00
Damien Elmes
06e302903b force default button in record dialog
https://anki.tenderapp.com/discussions/ankidesktop/34985-make-save-the-default-option-when-recording-audio
2019-07-12 17:37:25 +10:00
Damien Elmes
c2ea31422e fix flag changes in browser not syncing 2019-07-09 15:16:02 +10:00
Damien Elmes
b906593158 bump version 2019-06-27 10:27:31 +10:00
Damien Elmes
2d32d89180 quieten local port message for now
the race condition that is causing this still needs to be investigated
2019-06-27 10:01:23 +10:00
Damien Elmes
eca12446fa put deck fix messages in the collection log 2019-06-27 09:46:56 +10:00
Damien Elmes
51f9e7eec9 fix v2 relearning reset bug
https://anki.tenderapp.com/discussions/ankidesktop/34560-schedule-switching-bug
2019-06-14 09:15:48 +10:00
Damien Elmes
5c5afb7391 and test to catch v2 relearning reset bug
https://anki.tenderapp.com/discussions/ankidesktop/34560-schedule-switching-bug
2019-06-14 09:15:38 +10:00
Damien Elmes
464ba4264b bump version 2019-06-11 15:25:45 +10:00
Damien Elmes
c4ec006efc prefix non-breaking spaces
https://anki.tenderapp.com/discussions/ankidesktop/34512-first-space-is-omitted-when-pasting
2019-06-10 09:41:29 +10:00
Damien Elmes
2336436cdc use screen-relative max height/width
this should matche the Anki 2.0 behaviour
2019-06-06 09:53:50 +10:00
Damien Elmes
08b36d8300 fix __renderPage() being called twice 2019-06-01 16:35:19 +10:00
Damien Elmes
ca6142ccf0 fix v2 lrn scheduling bug
https://anki.tenderapp.com/discussions/ankimobile/9714-deleting-custom-study-deck-skips-learning-step-time
2019-05-31 15:05:12 +10:00
Damien Elmes
640f486964 add unit test for v2 lrn scheduling bug
https://anki.tenderapp.com/discussions/ankimobile/9714-deleting-custom-study-deck-skips-learning-step-time
2019-05-31 15:02:58 +10:00
Damien Elmes
b773e11b41 Merge pull request #309 from lovac42/reverted_info
added runHooks for reverted cards and state.
2019-05-20 15:03:28 +10:00
Lovac42
84272eca04 added runHooks for reverted cards and state. 2019-05-17 20:17:36 -04:00
Damien Elmes
ede1358f4f add Anki icon to a few windows
thanks to John for the original work on this
https://github.com/dae/anki/pull/308
2019-05-17 15:28:15 +10:00
Damien Elmes
ac8b6c0cac fix preview failing to appear when 'show both sides' enabled 2019-05-17 15:16:13 +10:00
Damien Elmes
f1228ad086 remove trailing <br> tag when pasting
https://anki.tenderapp.com/discussions/ankidesktop/33843-anki-2112-adds-br
https://anki.tenderapp.com/discussions/ankidesktop/33977-unwanted-automatic-line-break-insertion-after-pasting-into-a-field
2019-05-17 13:40:23 +10:00
Damien Elmes
ce1a78f07c don't error out when non-latin characters written to js console
(some?) macOS users have an ascii encoding, so we need to escape
the non-ascii portions prior to writing
2019-05-17 08:43:25 +10:00
Damien Elmes
3f1af6a55f Merge pull request #306 from lovac42/master
doubleclick addman list
2019-05-15 15:58:43 +10:00
Damien Elmes
e69e13ce1e prevent deck chooser from becoming default
Qt's behaviour seems to have changed in move to 5.12
2019-05-15 14:50:55 +10:00
Damien Elmes
1a45b6e361 tweak type answer note type 2019-05-14 17:05:37 +10:00
lovac42
50cb5a5d50 doubleclick addman list
doubleclick on addon manager list opens conf editor.
2019-05-13 17:27:27 -04:00
Damien Elmes
0303939568 fix learn steps being assigned on relearn in v2 2019-04-30 09:27:28 +10:00
Damien Elmes
c8775d4161 catch add-on deletion failure due to locked files in add-on folder
https://anki.tenderapp.com/discussions/add-ons/32676-2112
2019-04-29 18:43:10 +10:00
Damien Elmes
62ff62a360 on serverAbort, return early
- fixes error attempting to access self.client.hostNum
- prevents media sync from running
2019-04-29 18:27:00 +10:00
Damien Elmes
a0fe168137 wrap due numbers instead of capping them, and add warning
Wrapping (mostly) preserves the original card order, and starting
at 1M makes it easier for users to find the cards with the high
due numbers even after they have wrapped.

related discussion:
https://anki.tenderapp.com/discussions/ankidesktop/33664-due-value-of-new-card-being-1000000
2019-04-29 18:17:33 +10:00
Damien Elmes
48e441e20d fix 'open backup' opening to an empty deck list
Starting the import in a timer could cause the collection to be unloaded
while the deck list was being displayed, leading to an inconsistent
state.

The timer was originally required to avoid importing on startup,
but profile load is already delayed until after startup these days,
so the workaround should no longer be necessary.
2019-04-29 16:59:29 +10:00
Damien Elmes
94e59aeaff don't require callback for regular deck refresh
Ensures that decks refresh properly even if the webview has previously
failed to load due to a bug (such as the render routine being called
while the collection is closed)
2019-04-29 16:46:13 +10:00
Damien Elmes
21e842c927 fix stuck webview issue
A race condition could cause domDone to get stuck on false, causing
any further bridge messages and setHtml() calls to be ignored. Fix
the issue by clearing pending actions and resetting domDone when
setting HTML.
2019-04-29 16:41:47 +10:00
Damien Elmes
aa1cad76a9 bump version 2019-04-29 14:51:34 +10:00
Damien Elmes
11bfe205d8 cleanup mpv on exit 2019-04-29 14:36:51 +10:00
Damien Elmes
60afbcf62d daemonize helper threads so that sys.exit() during startup works
with daemonize set to False, the app hangs waiting on the helper threads
2019-04-29 14:36:44 +10:00
Damien Elmes
9e34a4aa72 as it's only a testing requirement, move mock into docs instead 2019-04-29 12:40:44 +10:00
Damien Elmes
1ff1c66a00 add missing mock requirement 2019-04-29 12:37:25 +10:00
Damien Elmes
a79da88a35 Merge pull request #304 from ErezVolk/jsonschema
Use jsonschema for add-on manifests
2019-04-29 12:34:47 +10:00
Damien Elmes
7e5f86499a fix formatting being lost in inter-field pasting on macOS
ownsClipboard() always returns false on macOS

regression introduced in PR 274
2019-04-29 12:30:52 +10:00
Damien Elmes
eaf90ff3b7 remove travis notifications 2019-04-25 13:33:18 +10:00
Damien Elmes
19b875a153 fix bug caused by user creating profile with trailing space
Caught exception:
  File "aqt\main.py", line 237, in onOpenBackup
  File "aqt\profiles.py", line 264, in backupFolder
  File "aqt\profiles.py", line 274, in _ensureExists
  File "os.py", line 220, in makedirs
<class 'FileNotFoundError'>: [WinError 3] The system cannot find the path specified: 'C:\\Users\\xxx\\AppData\\Roaming\\Anki2\\xxx \\backups'
2019-04-25 09:37:58 +10:00
Erez Volk
a2c6a5b27e Use jsonschema for add-on manifests 2019-04-24 23:42:49 +03:00