10 Commits
Author SHA1 Message Date
Agel 5d96fbb0bb Remove Book and Close Book menu items and auto-close on navigation
Simplify sidebar navigation by removing the conditional Book and Close Book
items so users no longer need to manage a book left open in the background.

Because there is no longer a Book item to return to the reader, navigating
away from the reader to History or Custom Theme now flushes any pending
scroll position and closes the active or in-flight book. Opening the Settings
popup still keeps the book open behind the overlay, and clicking Files keeps
the current book open until a file is actually selected so cancelling the
file dialog preserves the current reading session.

This also fixes book-lifecycle edge cases exposed by closing on navigation:
- Cancel in-flight async loads in Book::close() and clear loading state so
  closing mid-load does not jump back to the reader or stall the spinner.
- Emit willCloseBook before resetting the reader so AppCoordinator snapshots
  final progress into HistoryModel and immediately clears UiState.lastFilePath.
- Mark Book as loading before clearing the outgoing reader when opening a new
  file to prevent HistoryPage from flashing between books, and fall back to
  History on load errors.
- Reset ScrollPageView and MangaPageView state when a book closes, and always
  navigate to the reader on restoreReady so CLI-opened files are not hidden
  behind a previously saved History page.
- Add coverage in BookTest and AppCoordinatorTest and document the behavior
  in AGENTS.md.
2026-11-13 09:45:09 +01:00
Agel d14170a68f reintroduced epub support 2026-10-25 19:59:23 +01:00
Agel 3faedd4251 old render cleanup part 3 2026-10-25 15:43:51 +01:00
Agel cef762c3ee old render cleanup part 2 2026-10-25 15:10:38 +01:00
Agel acc7e71e7b old render cleanup part 1 2026-10-25 14:22:12 +01:00
Agel 83968646c6 Refactor using Fable 2026-07-31 17:31:02 +02:00
Agel 0c17c7d351 fix linux tests 2026-04-17 09:20:47 +02:00
Agel ad0d7376b3 Web image support 2026-04-08 22:10:10 +02:00
Agel 86e44e5d2a Improve format and error handling 2026-04-08 20:41:14 +02:00
Agel 9280c838b2 Some refactor 2026-04-08 14:01:03 +02:00