Commit Graph
17 Commits
Author SHA1 Message Date
schroda a96bc2c1da Delete chapter when read even if already marked as read
ReaderControls#useUpdateCurrentPageIndex:
On a page change the chapter update needs to be always queued since the deletion of downloaded chapters while reading logic is in the "ReaderService#updateChapter" function.
Thus, when the update is prevented here, this logic would never get triggered.

ReaderService#useUpdateChapter:
In case the read status or lastPageRead of a chapter did not change, the update was not triggered.
However, there might still be chapter downloads that need to be de deleted, which was never handled in such a case.
2025-01-16 13:22:13 +01:00
schroda a51d81d267 Extract "MetadataReader" functions 2025-01-04 21:28:26 +01:00
schroda cfd5b78488 Fix unchangeable global reader settings
Regression 72809309e1
2024-12-26 02:47:37 +01:00
schroda 72809309e1 Always register reader hotkeys
The hotkeys were never registered e.g. while loading or in case an error occurred
2024-12-24 17:26:45 +01:00
schroda f5642af219 Use HOC for reader context usage 2024-12-22 00:48:18 +01:00
schroda 3949363474 Include actual error in snackbar 2024-12-20 17:24:40 +01:00
schroda 74f78e40d4 Remove custom profiles
Instead of "custom profiles" each "reading mode" acts as a profile and has its own settings
2024-12-16 15:50:28 +01:00
schroda b4c1cdee77 Handle chapter updates sync in reader
To be able to properly prevent unnecessary chapter updates, the ongoing updates have to finish, so that the apollo cache is update to date.

Otherwise, the update guard will always be false since the apollo caches chapter data is still from before the previous updates were triggered.
2024-12-16 14:49:37 +01:00
schroda fcd44abccd Update chapters in reader only when data will change
In case the chapters already match the "patch" input, an update is not required.
2024-12-16 14:49:36 +01:00
schroda cff0ed5ec3 Extract app routes into constant 2024-12-11 20:25:49 +01:00
schroda 965aa7215c Update chapter 2024-12-09 02:38:37 +01:00
schroda 916abd3bb1 Resume chapter at specific page
- open from outside reader
 - is read
  - yes: 1st page
  - no : last read page
- inside reader via
 - chapter selection: first page
 - previous chapter : last page
 - next chapter     : first page
2024-12-09 02:38:37 +01:00
schroda 0b1c67ce9f Reader hotkeys 2024-12-09 02:38:37 +01:00
schroda 0ae9d9ebb2 Custom reader profiles 2024-12-09 02:38:37 +01:00
schroda a607f7f368 Reader settings 2024-12-09 02:38:37 +01:00
schroda 7434ed0152 Reader progress bars 2024-12-09 02:38:37 +01:00
schroda 51fb660c7b Reader tap zones 2024-12-09 02:38:37 +01:00