add logic for metadata migration (#218)

* [#215] Handle metadata migration

Makes it possible to change "metadata keys" and the "app metadata key prefix" without losing data

* [#215] Fix checking and handling missing reader settings in metadata

With the new migration logic missing reader settings couldn't be detected anymore in case the metadata included outdated app metadata keys for the reader settings.

* [#215] Fix name of "IReaderSettings" property
This commit is contained in:
Daniel
2023-01-06 18:19:45 +01:00
committed by GitHub
parent 7642b5808c
commit 9702728771
10 changed files with 135 additions and 22 deletions

View File

@@ -102,7 +102,7 @@ export default function DoublePagedPager(props: IReaderProps) {
if (curPage < pages.length - 1) {
const nextCurPage = curPage + pagesDisplayed.current;
setCurPage((nextCurPage >= pages.length) ? pages.length - 1 : nextCurPage);
} else if (settings.loadNextonEnding) {
} else if (settings.loadNextOnEnding) {
nextChapter();
}
}