diff --git a/changelog/v8.0.6.md b/changelog/v8.0.6.md index 83281a4b..4059089f 100644 --- a/changelog/v8.0.6.md +++ b/changelog/v8.0.6.md @@ -9,6 +9,7 @@ - 修复阅读页重载图片后,本地缓存未更新的bug - 修复阅读页切换为双列模式时页面渲染异常的bug - 修复无法自动更新已下载画廊标签的bug +- 修复双列模式下本地阅读的bug -------------------- @@ -23,4 +24,5 @@ - Fix the problem of exiting the main route on the mobile terminal - Fix the bug that the local cache is not updated after reloading the image on the reading page - Fix the bug that the page rendering is abnormal when switching to double-column mode on the reading page -- Fix the bug that the tags of downloaded galleries cannot be automatically updated \ No newline at end of file +- Fix the bug that the tags of downloaded galleries cannot be automatically updated +- Fix the bug of local reading in double-column mode \ No newline at end of file diff --git a/lib/src/pages/download/mixin/local/local_gallery_download_page_logic_mixin.dart b/lib/src/pages/download/mixin/local/local_gallery_download_page_logic_mixin.dart index 7ab1558d..61bc6150 100644 --- a/lib/src/pages/download/mixin/local/local_gallery_download_page_logic_mixin.dart +++ b/lib/src/pages/download/mixin/local/local_gallery_download_page_logic_mixin.dart @@ -98,7 +98,7 @@ mixin LocalGalleryDownloadPageLogicMixin on GetxController { initialIndex: readIndexRecord, pageCount: images.length, readProgressRecordStorageKey: gallery.title, - images: localGalleryService.getGalleryImages(gallery), + images: images, useSuperResolution: false, ), ); diff --git a/lib/src/pages/read/layout/horizontal_double_column/horizontal_double_column_layout_logic.dart b/lib/src/pages/read/layout/horizontal_double_column/horizontal_double_column_layout_logic.dart index 5ea4506f..3497d78c 100644 --- a/lib/src/pages/read/layout/horizontal_double_column/horizontal_double_column_layout_logic.dart +++ b/lib/src/pages/read/layout/horizontal_double_column/horizontal_double_column_layout_logic.dart @@ -17,12 +17,15 @@ class HorizontalDoubleColumnLayoutLogic extends BaseLayoutLogic { HorizontalDoubleColumnLayoutState state = HorizontalDoubleColumnLayoutState(); Completer initCompleter = Completer(); - + @override Future onInit() async { super.onInit(); - String? cacheString = await localConfigService.read(configKey: ConfigEnum.isSpreadPage, subConfigKey: readPageState.readPageInfo.gid.toString()); + String? cacheString = await localConfigService.read( + configKey: ConfigEnum.isSpreadPage, + subConfigKey: readPageState.readPageInfo.readProgressRecordStorageKey, + ); if (cacheString == null) { state.isSpreadPage = List.generate(readPageState.readPageInfo.pageCount, (_) => false); } else {