Commit graph

12274 commits

Author SHA1 Message Date
Abdo
60af80ba9d Scroll selected deck/notetype into view 2025-10-26 18:59:49 +03:00
Abdo
3a0c3ef4e7 Fix notetype changing after changes to fields 2025-10-26 17:59:33 +03:00
Abdo
12769460ba Fix initial=True being passed to subsequent loadNote calls 2025-10-26 17:57:52 +03:00
Abdo
789b0a702e Fix disabled history button's hover styles
The `background` property from the primary styles had a higher priority
2025-10-26 16:51:57 +03:00
Abdo
bc260a0c29 Fix double paste 2025-10-26 16:33:10 +03:00
Abdo
7113648a3f Formatting 2025-10-19 08:41:03 +03:00
Abdo
f9607ce8af Fix focused field not being preserved 2025-10-19 08:39:03 +03:00
Abdo
783a6d1fa2 Avoid extra initial loadNote() 2025-10-19 08:33:26 +03:00
Abdo
0ed12f5c63 Fix notetype/deck of original note not being set 2025-10-19 08:32:27 +03:00
Abdo
5e9428cd26 Preserve initial note load args 2025-10-19 06:57:01 +03:00
Abdo
224ea3abb1 Make CooldownTimer accept an aync action 2025-10-19 06:10:47 +03:00
Abdo
6cab377083 Fix TS type 2025-10-19 05:56:43 +03:00
Abdo
e7bfb73f72 Fix deck of copied note not being used 2025-10-19 05:24:23 +03:00
Abdo
9dd4ad5226 Allow opening legacy screens from browser/reviewer 2025-10-19 05:21:49 +03:00
Abdo
3c8f35efd3 Simplify async request handling 2025-10-19 05:12:15 +03:00
Abdo
9dcbf70aeb Fix formatting/typing errors 2025-10-18 14:38:21 +03:00
Abdo
3084d59fb4 Merge branch 'main' into editor-3830 2025-10-18 14:08:37 +03:00
Abdo
33a1b32095 Fix legacy editable styles 2025-10-18 06:45:17 +03:00
Abdo
a305665bf6 Fix legacy editor not rebuilding after changes in ts/routes 2025-10-18 04:57:15 +03:00
Abdo
8a0a21aba6 Fix call_after_note_saved() 2025-10-18 04:25:25 +03:00
Abdo
7c6fa98063 Add RPCs for Fields/Cards dialogs 2025-10-18 04:14:02 +03:00
Abdo
bdbafb1f6e Save before opening Fields/Cards 2025-10-18 03:55:03 +03:00
Abdo
71dfb6350d Run scheduled save before add 2025-10-18 03:53:00 +03:00
Abdo
7dc2d29136 Handle deeply nested OpChanges
Messages such as AddNotesResponse were not handled correctly.
2025-10-18 02:45:27 +03:00
Abdo
74c727e82c Remove log() 2025-10-18 01:37:09 +03:00
Ranjit Odedra
d24d2e3394
Fix sync login dialog not using newly-set custom sync server #4395 (#4396)
* Fix sync login with custom server URL

Call update_network() before showing login dialog to ensure
the custom sync server URL is saved before attempting login.

Previously, the custom URL was only saved when closing the
preferences dialog, causing login to fail on first attempt.

Fixes #4395

* Add contributor info
2025-10-18 01:11:50 +03:00
Abdo
9278da2c85 Formatting 2025-10-15 00:56:03 +03:00
Abdo
6248a71f2a Move .reload_note() calls 2025-10-15 00:53:37 +03:00
Abdo
9b28ed87f2 Fix undo of methods returning OpChanges directly not being handled correctly 2025-10-15 00:45:52 +03:00
Abdo
d0eb61acdb Fix notetype label not changing when default deck is set 2025-10-14 23:46:37 +03:00
Abdo
4ec88a8351 Handle operation changes from other screens 2025-10-14 23:46:31 +03:00
Abdo
fbfd2784d8 Merge branch 'main' into editor-3830 2025-10-13 13:38:14 +03:00
Abdo
6a27370b7a Remove unused CSS selector 2025-10-13 13:21:43 +03:00
Abdo
f10d48db47 Handle undo for all RPCs that return OpChanges 2025-10-13 13:09:49 +03:00
Lee Doughty
321e23acb2
Replace custom UUID function with crypto.randomUUID (#4384) 2025-10-13 09:37:30 +03:00
nav1s
ab2fe98c54
feat: add tooltips for sidebar items in the browse cards window (#4385)
* feat: add tooltips for all of the sidabar items in the browse cards window

* fix: add name to CONTRIBUTORS
2025-10-13 09:27:40 +03:00
Arold0
76d3237139
Fix notetype original_stock_kind using wrong enum (#4382)
Use OriginalStockKind instead of StockKind when setting
original_stock_kind for basic notetype variants. The two enums
have different numeric values, causing 'Restore to Default' to
restore the wrong template.

For example, StockKind::BasicTyping has value 3, but when read
back as OriginalStockKind, value 3 corresponds to
BasicOptionalReversed instead of BasicTyping (which is 4).

This fixes the off-by-one behavior where:
- Basic (type in the answer) → Basic (optional reversed card)
- Basic (and reversed card) → Basic (optional reversed card)
- Basic (optional reversed card) → Basic (and reversed card)

Fixes #4353
2025-10-09 01:50:50 +03:00
Arold0
d11b74fd38
Fix fatal error when double clicking Add button (#4377)
Prevent adding a note that has already been added by checking if
note.id is set before attempting to add it. This fixes a race
condition when the Add button is clicked multiple times quickly.

Fixes #4376
2025-10-05 15:58:16 +03:00
AmandaSternberg-creator
1f9d943c8d
Localize FSRS error message and update contributors (#4342)
Co-authored-by: Amanda Sternberg <mandis.sternberg@gmail.com>
2025-10-02 21:52:49 +07:00
user1823
1ba4512011
Fix launcher strings (#4375)
* Fix launcher strings

* Add prompt to press enter for installation

* Prompt should appear after ensuring that the OS is supported
2025-10-02 21:50:44 +07:00
GithubAnon0000
969c2b43b5
CHANGE launcher strings to clarify installing for novices (#4327)
* CHANGE strings to clarify for novices

* Update launcher.ftl including suggestions from @dae
2025-10-02 17:00:09 +07:00
matbe766
b2bb85b1a2
Avoid QProgressBar overflow by normalizing to kilobytes (fixes #4341) (#4354)
* qt: normalize large progress totals to kilobytes to avoid QProgressBar overflow (#4341); docs: update CONTRIBUTORS

* update

* revert: keep ProgressManager generic; no autoscaling in progress.py

* revert: keep ProgressManager generic; do scaling only in full sync

* Simplify sync progress update by scaling to KB, fix CONTRIBUTORS
2025-10-02 16:59:09 +07:00
Abdo
6165567238 Refresh fields after MathJax toggle
There's probably a more efficient solution for this but I couldn't
figure it out
2025-10-01 11:50:27 +03:00
Dan
0986af4f81
fix(Occlusion): remember toggle translucency setting (#4366)
* remember translucency

Adding myself to contributors

Added braces surrounding if statement to comply with ninja checks

* ninja fix format
2025-09-30 20:18:26 +03:00
Abdo
e5612b1340 Add back .empty MathJax styles 2025-09-30 16:35:37 +03:00
Abdo
fbd21ba7f1 Restore toggleMathjax for legacy editor 2025-09-30 15:53:45 +03:00
Abdo
6bd560ea3a Add setupColourPalette() to legacy editor 2025-09-30 15:36:00 +03:00
Abdo
28daa16bcf Merge branch 'main' into editor-3830 2025-09-30 15:31:26 +03:00
llama
a842ba1498
replace more hardcoded strings in the launcher with translations (#4368) 2025-09-30 00:13:09 +10:00
llama
f28018c5c6
fix(ci): pin cargo-license to 0.7.0 (#4367)
* pin cargo-license to 0.7.0

* ./ninja fix:minilints
2025-09-30 00:12:24 +10:00