fix history book positions
This commit is contained in:
5 files changed
+9
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user