fix history book positions

This commit is contained in:
Agel committed 2026-04-17 12:28:03 +02:00
1 parent f80fefa34f
commit 8879fa9aba
5 files changed
+9 -1

No files matched your search

+5
View File
@@ -175,6 +175,11 @@ int main(int argc, char *argv[])
historyModel.addOrUpdateBook(book.filePath(), readingModel.progress());
});
// Real-time history update: fired by PageView's scrollTrackTimer on every scroll.
QObject::connect(&book, &Book::positionSaved, [&]{
historyModel.addOrUpdateBook(book.filePath(), readingModel.progress());
});
// After the new reader is installed: wire up image provider + ReadingModel
QObject::connect(&book, &Book::bookChanged, [&]{
currentImageProvider = nullptr;