Damien Elmes
3a6f2a993e
move operations into submodule
2021-04-03 16:26:10 +10:00
Damien Elmes
41c5a25dc8
simplify errors
...
- use a flat enum instead of oneof messages, most of which were empty
- tidy up the Python side
2021-04-03 16:06:46 +10:00
Damien Elmes
fe6888f9a4
rename backend/err.rs -> error.rs
2021-04-03 14:47:52 +10:00
Damien Elmes
f666f15b63
use perform_op() for undo()
...
Instead of manually updating the UI after undoing, we just rely
on the same change notification infrastructure regular operations
use.
2021-04-03 14:38:49 +10:00
Damien Elmes
ee2c77e742
Merge pull request #1110 from abdnh/graphs-rtl
...
Fix graph labels display in RTL layout
2021-04-02 21:08:00 +10:00
Damien Elmes
afc8680f2a
make sure we don't invoke second search in v1 scheduler
2021-04-02 21:05:22 +10:00
abdo
09985ce57f
Fix graph labels display in RTL layout
2021-04-02 06:25:38 +03:00
Damien Elmes
e73359510d
move filtered deck labels to backend
...
- use strum to generate an iterator for the protobuf enum so we don't
forget to add new labels if extending in the future
- no add-ons appear to be using dynOrderLabels(), so it has been removed
@RumovZ perhaps a similar approach might work for listing the available
browser columns as well?
2021-04-01 23:53:38 +10:00
Damien Elmes
f55fe6e518
i18n error shown when attempting to rebuild normal deck
2021-04-01 22:55:10 +10:00
Damien Elmes
ac1b9fadde
merge the filtered deck errors into an enum
...
Fixes the wrong message being shown when trying to move cards to a
filtered deck
2021-04-01 22:30:00 +10:00
Damien Elmes
7df128a103
fix changes to .ftl and .proto files not being picked up by 'cargo check'
2021-04-01 22:29:54 +10:00
Damien Elmes
4e9a5ec5ea
fix a clippy lint
2021-04-01 18:01:31 +10:00
Damien Elmes
ba541076aa
convert card template error to tuple, and report notetype name in error
...
Older translations will note have the $notetype variable, but that is
not an error in Fluent - it would only cause problems if we tried to
use the new string on older Anki versions.
2021-04-01 17:59:33 +10:00
Damien Elmes
7a29d987c4
convert Json and Proto errors to tuple
2021-04-01 17:45:12 +10:00
Damien Elmes
55a6f10d24
tuple type for IoError
2021-04-01 17:40:35 +10:00
Damien Elmes
2b6c8b4296
tuple type for InvalidInput
2021-04-01 17:37:18 +10:00
Damien Elmes
a250464309
switch DbError to tuple type
2021-04-01 17:34:03 +10:00
Damien Elmes
1704f7fe80
drop dependency on failure crate
2021-04-01 17:21:13 +10:00
Damien Elmes
af37164fba
move sync/network errors into separate file
2021-04-01 17:02:54 +10:00
Damien Elmes
8363fcf2a8
move DB error into separate file; add InvalidRegex error
2021-04-01 16:28:23 +10:00
Damien Elmes
f14a631f68
split search errors into separate file
2021-04-01 16:18:28 +10:00
Damien Elmes
094e4ad461
crate::err -> crate::error
2021-04-01 16:07:13 +10:00
Damien Elmes
8449bbe469
Merge pull request #1108 from RumovZ/more-columns
...
Even more browser fixes and features
2021-04-01 15:59:06 +10:00
Damien Elmes
dd17da7d5c
Merge pull request #1106 from abdnh/fix-deprwarn
...
Fix deprecated implicit conversion from float to int using __int__()
2021-04-01 15:14:49 +10:00
Damien Elmes
9c1dc2b62e
tweak the wording of some of the tag ops
2021-04-01 15:12:13 +10:00
RumovZ
52b66dc985
Add shortcut and tooltip to switch
2021-03-31 18:53:36 +02:00
RumovZ
fd4b5dc695
Delay switch animation
...
If the switch triggers heavy GUI action, like a lot of paint()s, the
concurrently running switch animation may look choppy.
A small timer makes these events execute first and the animation will
run smoothly afterwards when the event queue has been drained.
2021-03-31 12:13:09 +02:00
RumovZ
c8146c13c1
Make toggle actions checkable
2021-03-31 10:05:44 +02:00
RumovZ
e5d68df527
Change switch knob colour
2021-03-31 09:16:25 +02:00
RumovZ
99e28068f9
Refactor get_row_color()
2021-03-31 08:56:54 +02:00
RumovZ
5e151cdc42
Pass Column by value
2021-03-31 00:02:10 +02:00
RumovZ
8779fb5ede
Add note interval column
2021-03-30 23:44:35 +02:00
RumovZ
31155f2dcd
Refactor note_ease_str()
2021-03-30 23:44:16 +02:00
abdo
d7aca8845f
Fix deprecated implicit conversion from float to int using __int__()
2021-03-31 00:32:20 +03:00
RumovZ
d7da1c1578
Fix previewer not changing card
2021-03-30 22:06:58 +02:00
RumovZ
f530c6d852
Fix comment typo
2021-03-30 21:40:35 +02:00
RumovZ
1ad91a5312
Add note due column
2021-03-30 21:39:15 +02:00
RumovZ
e9c14a763c
Refactor card_due_str()
2021-03-30 20:50:09 +02:00
Damien Elmes
42942a521e
Merge pull request #1104 from RumovZ/column-enum
...
Column enum for backend
2021-03-30 20:32:25 +10:00
RumovZ
da156cd759
Rename browser_rows to browser_table
...
Reflects the addition of column handling.
2021-03-30 12:08:35 +02:00
RumovZ
ffe77b1291
Add browser column enum for backend
2021-03-30 11:59:52 +02:00
Damien Elmes
49e4dba0d1
Merge pull request #1103 from abdnh/win-openfolder
...
Fix ResourceWarning in openFolder() on Windows
2021-03-30 19:28:12 +10:00
Damien Elmes
325920aa23
Merge pull request #1102 from RumovZ/more-browser
...
More browser fixes and features
2021-03-30 19:27:55 +10:00
Damien Elmes
6f7a4bf29e
update rules_rust with worker refactor
...
If you were using the optional Rust worker support, please see the
change to development.md
2021-03-30 17:24:51 +10:00
RumovZ
4933b922f7
Add note lapses column
2021-03-29 16:06:15 +02:00
RumovZ
32e538d0db
Add note reps column
2021-03-29 15:52:02 +02:00
RumovZ
18e33f24d3
Make note state equate to False as on backend
2021-03-29 15:51:34 +02:00
RumovZ
ad7ac06398
Add switch for browser states
2021-03-29 12:24:24 +02:00
RumovZ
a3e3e56f2b
Implement custom qt button Switch
2021-03-29 12:19:48 +02:00
RumovZ
2c7940e247
Fix browser_did_fetch_row hook
2021-03-29 12:16:50 +02:00