Damien Elmes
d453278d4b
fix field getting overwritten when showing duplicates
2018-04-30 14:51:28 +10:00
Damien Elmes
f8bfcc01d6
sox was dropped years ago
2018-04-19 17:15:49 +10:00
Damien Elmes
4d016cf4ba
hack around premature completer deletion
...
haven't been able to identify why qt sometimes deletes the completer
early, so just suppress the error for now
https://anki.tenderapp.com/discussions/beta-testing/884-freeze-and-sigabrt-when-add-dialog-is-left-open-for-about-one-hour-and-used-afterwards#comment_44837119
2018-04-18 13:21:10 +10:00
Damien Elmes
ba378394cf
Merge pull request #231 from ljcooke/config-md-unicode
...
Read config.md as UTF-8
2018-04-06 16:47:31 +10:00
Damien Elmes
b991883a6c
Revert "work around issues writing to Windows clipboard"
...
This reverts commit b6d68c284e .
seemed to be causing crashes, and the underlying race condition wasn't solved
2018-04-06 16:46:09 +10:00
Liam Cooke
8eb6490dfd
Read config.md as UTF-8
2018-04-05 22:11:44 +10:00
Damien Elmes
6dd7a18667
remove stale journal file when resetting prefs
2018-03-22 14:10:23 +10:00
Glutanimate
7c50ea06ad
Revert debug console shortcut workaround
...
Seems like the assignment to "Ctrl+:" is working again
cf. fb81f63fe3
2018-03-18 15:50:50 +01:00
Damien Elmes
562eeda201
allow pycmd() to return a value
...
based on pull request #228
2018-03-08 17:48:14 +10:00
Damien Elmes
2336cd098c
don't show completion dropdown on focus in
...
obscures buttons and gives the impression something needs to be chosen
https://anki.tenderapp.com/discussions/ankidesktop/27132-anki-bug-with-tags-and-decks#comment_44820594
2018-03-02 12:19:10 +10:00
Damien Elmes
75d1cb1f2a
filter middle click pastes
2018-03-02 11:16:02 +10:00
Damien Elmes
b6d68c284e
work around issues writing to Windows clipboard
...
https://anki.tenderapp.com/discussions/beta-testing/1014-cannot-copy-from-fields-in-anki-210beta36
2018-03-01 15:53:25 +10:00
Damien Elmes
4c4fcfe403
clean up deck chooser hook on importer close
...
fixes
https://anki.tenderapp.com/discussions/ankidesktop/20841-editingimport-limitation#comment_44777511
2018-03-01 14:20:30 +10:00
Damien Elmes
e131cb8e30
clarify 'delete unused' button, and don't show when n/a
2018-03-01 14:00:05 +10:00
Damien Elmes
317cb84201
ignore delete key if card list is not focused
...
https://anki.tenderapp.com/discussions/beta-testing/1004-ctrl-delete-erases-my-cards
2018-03-01 13:31:52 +10:00
Damien Elmes
fe95cdcfdd
fix error when unsetting browser appearance
2018-02-26 11:21:12 +11:00
Damien Elmes
4d6d5034a9
load add-ons in consistent order
...
if ANKIREVADDONS env var is defined, reverse order for debugging
partially addresses pull req #225
2018-02-24 13:23:15 +11:00
Damien Elmes
8c6ee7de6b
fix importing of v2 colpkg files
2018-02-05 15:30:57 +10:00
Damien Elmes
d8de5fbb9b
check shift key when paste starts; avoid progress dlg for local file
...
https://anki.tenderapp.com/discussions/ankidesktop/26661-conot-paste-image-and-text-together-from-word-into-anki
2018-02-05 13:40:56 +10:00
Damien Elmes
2e3907f62e
fix temp folder msg
2018-02-05 12:34:38 +10:00
Damien Elmes
2b7f2adbb8
catch more problems with corrupt collections
...
if collapseTime is missing from col.conf, the initial load was
succeeding, but then the UI was getting stuck in moveToState()
2018-02-05 12:34:31 +10:00
Damien Elmes
e592886723
prevent find duplicates scrolling to top on link click
2018-02-03 17:11:32 +10:00
Damien Elmes
e7607608c8
raise profile window on macos
...
otherwise profile manager opens without focus
2018-02-01 12:14:04 +10:00
Damien Elmes
c474f58748
enforce schema version; allow importing+exporting v2 scheduler
...
To avoid all sorts of problems, we need to ensure cards scheduled with
the V2 scheduler are not studied in older clients. Unfortunately we
can't just bump the file's schema version, as the existing clients will
freely import files created with newer versions. This patch changes
that, so things should be a bit easier in the future.
In the mean time, we need a way to prevent older clients from importing
files created with the V2 scheduler. To do this, we switch to using a
'collection.anki21' file in the archive, and include a dummy collection
.anki2 file.
The code has been tested with both deck and collection packages, but
exporting deck packages w/ scheduling info will remain disabled until
the V2 scheduler has had more testing.
2018-01-29 14:12:04 +10:00
Damien Elmes
3e9be0155e
preserve newlines when pasting plain text
2018-01-26 19:18:24 +10:00
Damien Elmes
1d0ce7c095
fix unbury op w/ v1 scheduler
2018-01-26 19:05:08 +10:00
Damien Elmes
f668c6fc79
remove missed format literals
2018-01-24 21:07:06 +10:00
Damien Elmes
b05276ff89
fix opening prefs screen in V1 sched
2018-01-22 11:24:45 +10:00
Damien Elmes
7c79f24916
add option to show day learn cards before reviews
2018-01-20 16:07:57 +10:00
Damien Elmes
5c549e47f4
support customizing day cutoff w/ V2 scheduler
2018-01-20 15:32:52 +10:00
Damien Elmes
65b81b0a47
make preview delay customizable
2018-01-20 15:26:11 +10:00
Damien Elmes
6e76983b3a
log traceback in case of sync error
2018-01-20 11:24:01 +10:00
Damien Elmes
07dcacf09b
remove format literals so we can support python 3.5
2018-01-16 16:07:30 +10:00
Damien Elmes
2294f8bc9f
work around progress dlg hang at startup on osx
...
with autosync on, when the progress dialog is closed and the main window
appears, it becomes stuck. hiding the dialog instead of closing it
seems to fix this.
2018-01-14 19:29:56 +10:00
Damien Elmes
f2159a99d0
hide second filter for v1 sched
2018-01-14 19:20:01 +10:00
Damien Elmes
e03f28f2cc
fix bad margins in progress dialog
2018-01-14 18:05:43 +10:00
Damien Elmes
a089424adc
check prefs21.db integrity
...
otherwise some corruption errors only become apparent when trying to
load an individual profile
2018-01-14 17:47:21 +10:00
Damien Elmes
0482a37517
support a second filter in filtered decks
2018-01-14 13:08:38 +10:00
Damien Elmes
65c779f25d
distinguish between buried siblings and manually buried cards
2018-01-14 12:16:53 +10:00
Damien Elmes
4b581c9f77
schedtest changes, squashed from local branch
2018-01-14 12:16:53 +10:00
Damien Elmes
7ef0e8ed5e
fixes to progress window
...
- make sure _shown reset to False on finish()
- ignore calls to .update() after finish() called, which can happen with
async signals in the sync code
2018-01-14 12:16:47 +10:00
dubiousjim
efefe1eac0
Factor out definition of context menu in reviewer.py
...
Handle definition of context menu in same way that shortcutKeys are handled. This makes it easier for add-ons to modify the context menu without needing to re-implement the whole showContextMenu method.
2018-01-07 18:19:49 +01:00
Damien Elmes
71627b1c23
move away from qprogressdialog
...
qprogressdialog has been the source of a number of problems in the past,
and the most recent issue is that it's showing the progress dialog
early, regardless of what the minimum duration is set to. since we're
already using our own logic for deciding when to show the dialog, it's
easier to move to a normal dialog box
also prevent timers from firing while a progress dialog is visible, or
if the refresh timer fires we end up with the same issue.
https://anki.tenderapp.com/discussions/beta-testing/949-anki-stops-when-field-is-added
2017-12-28 18:31:05 +10:00
Kerrick Staley
47dc2eb464
Bind mediaserver on 127.0.0.1 instead of localhost
2017-12-24 23:10:07 -08:00
Damien Elmes
206abfa338
refuse to run on qt 5.10
...
- on Linux and Windows, opening the browser and stats window back and
forth multiple times triggers a crash in the GL libraries, even with
software rendering enabled. Will try again when .1 is out
- on Mac, shortcut keys fire multiple times:
https://bugreports.qt.io/browse/QTBUG-65184
2017-12-18 14:50:14 +10:00
Damien Elmes
020eb86e3d
add context menu to browser
2017-12-14 14:49:51 +10:00
Damien Elmes
d513c93b89
more raw string literals
2017-12-13 14:34:54 +10:00
Damien Elmes
83b220f931
more open() and regex strings
2017-12-11 17:25:51 +10:00
Damien Elmes
ccb39c5f50
cgi.escape is deprecated
2017-12-11 16:20:00 +10:00
Damien Elmes
093cce7cce
add a flag to keep editor buttons enabled when no field selected
2017-12-08 21:06:16 +10:00