Damien Elmes
d7bef83f98
add types to some more Fluent variables
2021-03-26 16:52:54 +10:00
Damien Elmes
3d0e5248aa
update TR references that crossed multiple lines
2021-03-26 14:38:15 +10:00
Damien Elmes
5d164bea7f
update TR references that contain arguments
2021-03-26 14:21:04 +10:00
Damien Elmes
1df14f7c9c
update no-arg tr references in qt/
2021-03-26 13:48:26 +10:00
Damien Elmes
53d4a42d22
tweak AbortAddonImport docstring
2021-03-23 19:31:24 +10:00
Glutanimate
1adc4ae908
Add an exception that allows add-ons to abort early
2021-03-22 14:53:04 +01:00
Damien Elmes
9ad1e50544
fix a bunch of qt typing issues uncovered by the following commit
2021-03-19 19:45:21 +10:00
bluegreenmagick
2600d89850
don't show routine update when not update_enabled
2021-03-09 22:27:28 +09:00
bluegreenmagick
7ccfb61154
add context menu to open ankiweb page
2021-03-09 22:19:03 +09:00
bluegreenmagick
328ecb9ec3
add bool_to_check and checked method
2021-03-09 22:19:03 +09:00
bluegreenmagick
aa58d3922e
fix check issues in ChooseAddonsToUpdateList
2021-03-09 22:19:03 +09:00
bluegreenmagick
fa95d36bf9
save chooseaddonupdate check state
2021-03-09 22:19:03 +09:00
bluegreenmagick
35364b3b94
add dialog to choose addons to update
2021-03-03 10:34:43 +09:00
Damien Elmes
0b2ee8dcff
use add-on id if name is blank
...
https://forums.ankiweb.net/t/support-for-rtl-layout-in-ankiweb-add-on-page/7522
2021-02-16 11:12:05 +10:00
Damien Elmes
42a44875ab
convert qt strings to f-strings with flynt
...
Also revealed an incorrect type def in editor.py that mypy wasn't
noticing before :-(
2021-02-11 10:09:06 +10:00
Damien Elmes
bf7528d90a
minor code cleanups with pyupgrade
...
- pyupgrade --py38-plus --keep-runtime-typing --keep-percent-format
- third-party mpv and winpaths excluded
2021-02-11 09:43:40 +10:00
Damien Elmes
6c60a27c8b
add remaining types and disable missing types on (almost) all aqt
2021-02-03 00:00:29 +10:00
Damien Elmes
748aeb9df1
add a bunch of return types
2021-02-01 23:53:23 +10:00
Damien Elmes
8dc5ea8bb6
add types to utils.py
...
The function signatures for things like getFile() are awful, but
sadly are used by a bunch of add-ons.
2021-02-01 20:23:48 +10:00
Damien Elmes
8075d46011
convert setWindowFlags call into helper, and fix invalid variables
...
"type: ignore" was masking the invalid references to self in places
like showText()
2021-01-07 14:24:49 +10:00
BlueGreenMagick
9a29d1b97a
remove context help button
2021-01-06 22:15:48 +09:00
Henrik Giesel
bd0b58ef1c
Add silentlyClose method to Addons dialog
2021-01-04 11:52:00 +01:00
Henrik Giesel
b7556281d0
Open AddonsDialog via dialog manager
2020-12-26 18:07:37 +01:00
Damien Elmes
68311500b3
update remaining python format strings to Fluent
2020-11-22 14:57:53 +10:00
Damien Elmes
7e655614b2
fix remaining _() references; remove unused imports
2020-11-18 12:43:46 +10:00
Damien Elmes
b02badb224
update multi-line _() references
2020-11-18 11:32:22 +10:00
Damien Elmes
dac8daf113
begin plural string migration
2020-11-17 23:29:08 +10:00
Damien Elmes
2feddb3d70
update temporary val="%s" references to standard ftl
2020-11-17 22:00:44 +10:00
Damien Elmes
066b1498ae
merge bulk of qt/ - designer files still to do
2020-11-17 17:42:43 +10:00
Damien Elmes
8729edffbb
update to latest black
2020-08-31 13:29:28 +10:00
ANH
ff4cb87433
remove unicode isolation markers from add-on config editor title
2020-08-31 00:35:17 +03:00
Fabian Wood
d8bce7731f
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
00236ce253
Updated qt addons with more extensive typehints
2020-08-01 15:50:27 +10:00
Matt Krump
1fe46438c0
Turn on check_untyped_defs for aqt.addons
2020-07-30 18:43:57 -06:00
Damien Elmes
8fb3da2e27
split add-ons window title from menu bar action
...
https://anki.tenderapp.com/discussions/private/4781-print-mistake
2020-07-19 09:49:36 +10:00
Damien Elmes
f38c9b4272
work around yet another qt bug
...
https://anki.tenderapp.com/discussions/beta-testing/2017-httpsforumsankiwebnettrestore-defaults-config-not-visually-updated420
2020-06-24 11:12:45 +10:00
Damien Elmes
b552dfb986
add "immediate" progress back
...
on ops which we know are going to take time, it makes the interface
look more responsive to pop up the progress more quickly
2020-06-01 13:57:10 +10:00
Damien Elmes
4d33b2d8f7
use qconnect everywhere, and fix some typing issues
...
a step towards check_untyped_defs in aqt, but there's still 100+
issues to resolve
2020-05-04 13:23:08 +10:00
Damien Elmes
0c1b10162f
Revert "Merge pull request #562 from ijgnd/master"
...
This reverts commit 1163e418ee , reversing
changes made to 2bfff8dee4 .
https://anki.tenderapp.com/discussions/beta-testing/1920-config-can-copy-paste-but-cant-click-links-now
2020-04-21 09:10:45 +10:00
ijgnd
9d076d00e0
make help text selectable
...
This allows the user to copy e.g. values so that they don't have to retype them which might introduce typos.
2020-04-15 18:59:04 +02:00
Damien Elmes
a33a02f3de
update if a compatible branch is found, even if mtime is wrong
...
https://anki.tenderapp.com/discussions/ankiweb/4668-addon-auto-update-problems
2020-04-15 18:47:04 +10:00
Arthur Milchior
5bb0808994
Allow add-on dev to show personalized message.
...
The error should be in "error_msg"
They can show:
* the original error message with {problem}
* the path of the error with {path},
* the value which does not match against the subchema with {error}
* the subschema against which the error occurs with {schema}
Thanks to Glutanimate for the idea https://github.com/ankitects/anki/pull/495#issuecomment-596685227
2020-03-11 01:39:39 +01:00
Arthur Milchior
c4ee97d707
snake case for addon_schema
2020-03-11 00:56:14 +01:00
Arthur Milchior
7dd2c3ec43
hook single_addon_selected
2020-03-09 12:45:10 +01:00
Arthur Milchior
9f1415a811
hook addons_dialog_will_show
2020-03-09 12:45:10 +01:00
Arthur Milchior
0a8f339aa3
More precise schema failure message
...
While creating schema for the add-on I used, I realized that my error
message was not precise enough.
For a big configuration such as in "Enhance main window", the message
"None is not of type 'string'" is almost useless.
So I added a path in the json config, to indicate where the error
is. And also which subschema is currently being used.
2020-03-08 16:38:06 +01:00
Damien Elmes
aeb73a6354
Merge pull request #495 from Arthur-Milchior/check_schema_before_accepting
...
add-on config check schema of user config
2020-03-06 21:14:47 +10:00
Arthur Milchior
f914354d16
add-on config check schema of user config
2020-03-05 16:31:17 +01:00
Damien Elmes
02caf37f28
fix regression introduced by PR #492
2020-03-05 09:24:26 +10:00
Damien Elmes
a655dce629
Merge pull request #492 from Arthur-Milchior/print_json_decode_error
...
print json decode error message
2020-03-05 07:26:17 +10:00