Commit Graph

39448 Commits

Author SHA1 Message Date
Kovid Goyal c6b44d5ef7 Do not import webengine when running viewer annotations test 2025-12-30 09:14:24 +05:30
Kovid Goyal 1f63730ca4 Run webengine test in a worker process
Otherwise we get sporadic crashes on macOS.
2025-12-30 08:53:00 +05:30
Kovid Goyal 2cc7a0c516 Removed unused code 2025-12-30 08:03:00 +05:30
Kovid Goyal d7c3e23c62 ... 2025-12-30 08:03:00 +05:30
Kovid Goyal 704b539302 Add a button to trigger a pages recount 2025-12-30 08:03:00 +05:30
Kovid Goyal e8aea1194b Show DRM in the Pages column if calculating pages failed because book is DRMed 2025-12-30 08:02:59 +05:30
Kovid Goyal a19691fd4a Allow the Pages column to be added to the book list view 2025-12-30 08:02:59 +05:30
Kovid Goyal 2f2ec54e2c Some more test closures 2025-12-30 08:02:59 +05:30
Kovid Goyal 94b30d3927 ... 2025-12-30 08:02:59 +05:30
Kovid Goyal 4859204809 Some more test closures 2025-12-30 08:02:59 +05:30
Kovid Goyal 669e408cc6 Ensure various Cache objects used in tests are properly closed rather than relying on their __del__ method 2025-12-30 08:02:59 +05:30
Kovid Goyal 0435f0a0c0 Ignore connection closed in maintain page counts thread
Exit thread cleanly in such cases
2025-12-30 08:02:59 +05:30
Kovid Goyal 479692c324 Implement page based spine widths
Change the number of pages for a max width book to 2000 from 150
2025-12-30 08:02:59 +05:30
Kovid Goyal bb35553a58 Make tear down more robust on Unix 2025-12-30 08:02:59 +05:30
Kovid Goyal d06a89bc15 Use the more efficient shutil.copyfile for copying formats out of the library 2025-12-30 08:02:59 +05:30
Kovid Goyal bd43e9204e ... 2025-12-30 08:02:59 +05:30
Kovid Goyal 12c9444ce2 Add tests for page count semantics in the db 2025-12-30 08:02:59 +05:30
Kovid Goyal 078285845c ... 2025-12-30 08:02:59 +05:30
Kovid Goyal d1cd49d8a9 Specialize page counting for text files 2025-12-30 08:02:58 +05:30
Kovid Goyal d992305e8e Start work on maintaining page counts for spine width calculations in the shelf view 2025-12-30 08:02:58 +05:30
Kovid Goyal e81fa6ac0e Allow user to override lookup.js 2025-12-30 07:59:20 +05:30
Kovid Goyal 001d851047 string changes 2025-12-29 08:55:39 +05:30
Kovid Goyal 761eb67d0f string changes 2025-12-29 08:54:38 +05:30
Kovid Goyal 317c181516 Bump version for preview build
The build is needed for people running from source because of the python
3.13 requirement.
2025-12-28 23:55:30 +05:30
Kovid Goyal f956acce08 Edit book: Fix crash on copy in Wayland with PyQt 6.10.1
Also has the advantage of fixing the PARAGRAPH_SEPARATOR issue for all
copied text mimetypes.
2025-12-28 08:59:37 +05:30
Kovid Goyal 5164212034 Add a test for page counting 2025-12-27 14:56:22 +05:30
Kovid Goyal 0ad066c8dd ... 2025-12-27 13:10:16 +05:30
Kovid Goyal 259fd08715 Start work on centralised page counting service 2025-12-27 12:49:10 +05:30
Kovid Goyal 8769ccd9f3 Couple of utility functions 2025-12-27 10:46:39 +05:30
Kovid Goyal 242920721c Use shutdown on the queues used in the bookshelf 2025-12-26 23:11:30 +05:30
Kovid Goyal 2f0952ecd9 Bump minimum required python to 3.13
Needed for Queue.shutdown() which is much more elegant than putting a
sentinel value in the queue and in the case of FIFO queues much faster
as well. Python 3.13 is over two years old at this point.
2025-12-26 23:07:09 +05:30
Kovid Goyal 34b4d1ab32 Use a LifoQueue for thumbnail render requests
This means that when scrolling through a view the thumbnails for where
the scrolling stops are rendered first rather than thumbnails for the
scrolled off screen entries.
2025-12-26 23:03:46 +05:30
Kovid Goyal e8371223ec shelves_per_screen must be an integer 2025-12-26 22:43:21 +05:30
Kovid Goyal cb02f265ac ... 2025-12-26 22:38:08 +05:30
Kovid Goyal 19051088d7 Avoid constructing a proxy metadata object when the template is the default value 2025-12-26 22:37:04 +05:30
Kovid Goyal 8081ab1850 Draw spine text even when thumbnail is not yet rendered 2025-12-26 22:34:36 +05:30
Kovid Goyal 69d4597e88 Bookshelf: Debounce resize events to avoid flicker during live resize 2025-12-26 22:19:16 +05:30
Kovid Goyal 5489a2eef1 Use a single thread for all layouting instead of using a new thread per layout 2025-12-26 22:08:40 +05:30
Kovid Goyal 19155cac57 Cancel potential drag if mouse move event occurs without button pressed 2025-12-26 21:15:16 +05:30
Kovid Goyal 5808d46273 Use a special name for undefined date year groupings 2025-12-26 21:03:26 +05:30
Kovid Goyal e4dd51df48 Bookshelf: Hide scrollbar when not needed 2025-12-26 17:26:13 +05:30
Kovid Goyal aa1a26b442 Respect image aspect ratio when expanding default cover 2025-12-26 17:08:35 +05:30
Kovid Goyal eef2bcd4e8 Fix ungrouped books not being displayed 2025-12-26 16:55:38 +05:30
Kovid Goyal f275550e9b Bookshelf: fix mouse right button not changing current item 2025-12-26 16:39:44 +05:30
Kovid Goyal 48e63485d7 ... 2025-12-26 11:46:14 +05:30
Kovid Goyal 6a9b7edbfb ... 2025-12-26 11:24:48 +05:30
Kovid Goyal ce8938ecbc Ad dan icon for Group by context menu entry 2025-12-26 10:34:51 +05:30
Kovid Goyal 5fee322a77 grouping_mode is not a hidden variable 2025-12-26 10:32:43 +05:30
Kovid Goyal b973f84311 ... 2025-12-25 22:08:35 +05:30
Kovid Goyal 225d1fc8cc Dont use the animation code path when duration is <= 0 2025-12-25 22:03:11 +05:30