llama
53a2e34a3f
Fix missing buttons on bottom bar when window is narrow ( #3653 )
...
* Delay offsetHeight query to account for reflow
* Handle invalid value if webview page was deleted
2024-12-22 11:29:54 +10:00
Ben Nguyen
3a7a1c7346
Don't parse TTS text as XML ( #3651 )
2024-12-22 11:09:00 +10:00
llama
b061da73d3
Replace use of window.postMessage in card info ( #3646 )
...
* Use anki.updateCard instead of window.onmessage in card-info
* Make card-info placeholder text grey
---------
Co-authored-by: Abdo <abdo@abdnh.net>
2024-12-18 11:32:07 +03:00
llama
a0712b04e1
Split off path into its own arg ( #3641 )
2024-12-16 14:15:05 +03:00
llama
b726e28229
Remove use of window.location.href in CardInfoDialog ( #3621 )
...
* Replace window.location in CardInfoDialog with load_sveltekit_page
* Fix format
* Fix ForgettingCurve's reactivity
* Props' default args aren't reactive
* Add global _updateCardId fn to card-info
* Use _updateCardId to reactively update card-info
* Fix format
* Fix type
* Use dummy form instead of window global for client-side nav
* Fallback to window.location in case form hasn't been rendered
* Use window.postMessage instead of dummy <form>
2024-12-14 22:45:54 +11:00
llama
2d207ff5ba
Remove hardcoded note/card colours from switch.py ( #3629 )
...
* Remove hardcoded note/card colours in switch.py
* Modify CONTRIBUTORS
* Switch to None as a safe default value
2024-12-14 21:30:28 +11:00
Bart Louwers
36d0fddd38
[Qt 6.7] Set ForceDarkMode attribute in AnkiWebView ( #3622 )
...
* Set ForceDarkMode attribute in AnkiWebView
* Use hasattr for backward compatibility
* Make mypy happy
2024-12-14 21:29:30 +11:00
Ross Brown
d1032d86a7
Make sure Anki resets the QtMessageHandler as it is exiting ( #3620 )
2024-12-09 15:39:45 +11:00
Ben Nguyen
128f54ed90
Fix reuse internal clipboard for primary selection pasting ( #3613 )
...
* Pass down clipboard mode
* Add type annotation
2024-12-09 15:38:52 +11:00
hideo aoyama
039c7fc0a9
Snap: keep LD_LIBRARY_PATH when in snap environment ( #3618 )
2024-12-07 00:42:03 +11:00
user1823
f345517dcc
Change font of debug console to Consolas ( #3606 )
2024-12-07 00:37:43 +11:00
sorata
d897b4588e
update error message ( #3612 )
...
Co-authored-by: Abdo <abdo@abdnh.net>
2024-12-06 03:05:49 +03:00
Damien Elmes
69ac450098
"Fields for ..."
...
https://forums.ankiweb.net/t/add-note-type-name-to-the-fields-editor/52263
2024-11-23 22:45:19 +11:00
Damien Elmes
4486227178
Bump mimalloc for CVE
2024-11-19 15:27:39 +10:00
Ben Nguyen
9d09c32ece
Enable strict_optional for aqt/tagedit, utils, sync ( #3578 )
...
* Enable strict_optional for tagedit
* Fix mypy errors
* Enable strict_optional for utils
* Fix mypy errors
* Enable strict_optional for sync
* Fix mypy errors
---------
Co-authored-by: Abdo <abdo@abdnh.net>
2024-11-15 16:29:19 +03:00
Ben Nguyen
29f714d973
Enable strict_optional for aqt/mediasync, package, progress ( #3577 )
...
* Enable strict_optional for mediasync
* Fix mypy errors
* Enable strict_optional for package
* Fix mypy errors
* Enable strict_optional for progress
* Fix mypy errors
2024-11-15 16:24:50 +03:00
Ben Nguyen
edf59c2bb2
Enable strict_optional for aqt/deckchooser, about, webview ( #3573 )
...
* Enable strict_optional for deckchooser
* Fix mypy errors
* Enable strict_optional for about
* Fix mypy errors
* Enable strict_optional for webview
* Fix mypy errors
* Fix merge error
* Revert utils
* Add early returns
---------
Co-authored-by: Abdo <abdo@abdnh.net>
2024-11-13 12:06:55 +03:00
Ben Nguyen
db7f128b83
Enable strict_optional for aqt/mediacheck, theme, toolbar ( #3569 )
...
* Enable strict_optional for mediacheck
* Fix mypy errors
* Enable strict_optional for theme
* Fix mypy errors
* Enable strict_optional for toolbar
* Fix mypy errors
2024-11-12 19:47:04 +03:00
Abdo
763712c696
Remove outdated TODO ( #3567 )
2024-11-09 18:42:49 +03:00
Ben Nguyen
fdaad7150e
Enable strict_optional for aqt/debug_console, emptycards, flags ( #3565 )
...
* Enable strict_optional for debug_console
* Fix mypy errors
* Enable strict_optional for emptycards
* Fix mypy errors
* Enable strict_optional for flags
* Fix mypy errors
2024-11-09 13:43:51 +03:00
Ben Nguyen
a150eda287
Enable strict_optional for aqt/notetypechooser, stats, switch ( #3558 )
...
* Enable strict_optional for notetypechooser
* Fix mypy errors
* Enable strict_optional for stats
* Fix mypy errors
* Enable strict_optional for switch
* Fix mypy errors
---------
Co-authored-by: Abdo <abdo@abdnh.net>
2024-11-08 13:42:42 +03:00
Ben Nguyen
ac731624e1
Enable strict_optional for aqt/deckoptions, editcurrent, filtered_deck ( #3556 )
...
* Enable strict_optional for filtered_deck
* Fix mypy errors
* Enable strict_optional for editcurrent
* Fix mypy errors
* Enable strict_optional for deckoptions
* Fix mypy errors
2024-11-07 08:33:41 +10:00
Abdo
11d2b91268
Fix target deck reset to notetype-specific setting ( #3555 )
2024-11-07 08:32:42 +10:00
Abdo
442ddb085a
Fix UI hanging with empty context menu ( #3553 )
2024-11-05 17:49:48 +03:00
Abdo
43d9b00b85
Remove legacy import option ( #3536 )
...
* Remove legacy import option
* Always return False in legacy_import_export()
2024-11-05 18:25:06 +10:00
Ben Nguyen
8b84583433
Enable strict_optional for aqt/clayout, changenotetype, fields ( #3544 )
...
* Enable strict_optional for clayout
* Fix mypy errors
* Enable strict_optional for changenotetype
* Fix mypy errors
* Enable strict_optional for fields
* Fix mypy errors
2024-10-30 13:40:40 +03:00
Ben Nguyen
a25edecc88
Enable strict_optional for aqt/studydeck, tts, mediasrv ( #3542 )
...
* Enable strict_optional for studydeck
* Fix mypy errors
* Enable strict_optional for tts
* Fix mypy errors in tts
* Enable strict_optional for mediasrv
* Fix mypy errors in mediasrv
2024-10-29 12:05:54 +03:00
Ben Nguyen
7f58ca213c
Enable strict_optional for aqt/modelchooser.py ( #3539 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-28 14:19:31 +10:00
Ben Nguyen
fbd53726cc
Enable strict_optional for aqt/deckdescription.py ( #3538 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-28 14:18:16 +10:00
Ben Nguyen
2889299670
Enable strict_optional for aqt/deckbrowser.py ( #3537 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-28 14:16:42 +10:00
Abdo
a240de2652
Merge branch 'main' into aqt-strict-optional-taglimit
2024-10-27 17:10:21 +03:00
Abdo
677664dea3
Merge branch 'main' into aqt-strict-optional-overview
2024-10-27 17:06:58 +03:00
bpnguyen107
d7ed0fee16
Fix mypy errors
2024-10-26 19:33:04 -07:00
bpnguyen107
c02f234ce0
Fix mypy errors
2024-10-26 19:19:20 -07:00
bpnguyen107
364a1ada00
Fix mypy errors
2024-10-26 19:07:43 -07:00
Ben Nguyen
e4eaaa57ab
Enable strict_optional for aqt/importing.py ( #3527 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-26 19:56:34 +10:00
Ben Nguyen
507050c876
Enable strict_optional for aqt/preferences.py ( #3519 )
...
* Enable strict_optional for aqt/preferences.py
* Fix mypy errors
2024-10-26 19:33:53 +10:00
Damien Elmes
fe0f5370b0
Revert "Fix ease button alignment ( #3474 )" ( #3522 )
...
This reverts commit 569a4705e7
.
2024-10-26 18:50:02 +10:00
Damien Elmes
31fe7f2c89
Fix error when exporting from empty cards screen
...
https://forums.ankiweb.net/t/bug-copy-debug-info-button-crashes-anki-24-04-and-24-06-3/50852
2024-10-22 23:24:27 +10:00
Damien Elmes
6adbd922f7
Rename remaining 'weights' references to 'params'
2024-10-21 18:13:23 +10:00
Damien Elmes
c1a2b03871
Revert "NF: Improve typing of AnkiWebView action ( #3475 )" ( #3504 )
...
This reverts commit 18889239d2
.
2024-10-16 03:02:22 +10:00
Taylor Obyen
569a4705e7
Fix ease button alignment ( #3474 )
...
* Fix ease button alignment
* Make CSS not 'hacky'
2024-10-16 01:46:55 +10:00
Ben Nguyen
a537d349b8
Enable strict_optional for aqt/editor.py ( #3500 )
...
* Enable strict_optional for aqt/editor.py
* Fix mypy errors in EditorWebView class
* Fix mypy errors in Editor class
* DRY
* Match same short circuiting behavior
* Convention
2024-10-16 01:08:24 +10:00
Hikaru Y.
694a5089a9
Fix 'Discard changes' dialog appearing even when no changes are made ( #3495 )
...
* Fix 'Discard changes' dialog appearing even when no changes are made
https://forums.ankiweb.net/t/anki-24-10-beta/49989/166
* Fix geometry of deck options window not being saved
evt.accept() does not seem to trigger reject().
2024-10-16 00:47:33 +10:00
Damien Elmes
e77632d7b2
Fix UI hanging when update check stalls
...
https://forums.ankiweb.net/t/anki-24-10-beta/49989/222
2024-10-15 21:32:46 +10:00
Jarrett Ye
f00211df35
add get_revlogs API && fix the style of tooltipText of ReviewsGraph ( #3490 )
...
* add get_revlogs API
* fix tooltipText of ReviewsGraph
the style of true-retention shouldn't affect the style of tooltipText of ReviewsGraph
* More verbose wording (dae)
2024-10-12 14:49:14 +10:00
Ben Nguyen
aaf4994e6f
Enable strict_optional for aqt/data, aqt/forms, aqt/import_export ( #3489 )
...
* Added spacing
* Enable strict_optional for aqt/data
* Update CONTRIBUTORS
* Enable strict_optional for aqt/forms
* Enable strict_optional for aqt/import_export
* Fix mypy errors in import_dialog.py
* Fix mypy errors in exporting.py
* Better variable name
* Stick to assert convention
2024-10-12 14:36:15 +10:00
Damien Elmes
78b9580447
Ignore mw typing error
2024-10-11 23:47:22 +10:00
Ben Nguyen
931e1d80f2
Enable strict_optional in aqt/. and aqt/browser ( #3486 )
...
* Boolean naming convention
* Rename no_strict_optional -> strict_optional
* Update CONTRIBUTORS
* Enable strict optional for aqt module
* Fix errors
* Enable strict optional for aqt browser
* Fix layout.py errors
* Fix find_duplicates.py errors
* Fix browser.py errors
* Revert a0 a1 names
* Fix tree.py errors
* Fix previewer.py errors
* Fix model.py errors
* Fix find_and_replace.py errors
* Fix item.py errors
* Fix toolbar.py errors
* Fix table/__init__.py errors
* Fix model.py errors
* Fix state.py errors
* Fix table.py errors
* Fix errors in card_info.py
* Fix searchbar.py errors
* Fix name
* Fix assert in browser.py
* Formatting
* Fix assert vh
* assert is not None instead of truthy
* Split _move_current() up to correct type signature (dae)
We want either index or direction, but not both.
2024-10-11 23:12:48 +10:00
a.r
8af63f81eb
typeanswer: NFC fix & cleanup ( #3482 )
...
* typeanswer: cleanup
* DiffNonCombining's new() used String where plain Vec is appropriate
* get rid of normalize_typed for DiffTrait again by pulling code into DiffNonCombining's new()
* two DiffNonCombining testcases
* typeanswer: return to NFC & typos
2024-10-11 20:33:08 +10:00