Skip to content

Commit

Permalink
Fix the bug of local reading in double-column mode
Browse files Browse the repository at this point in the history
修复双列模式下本地阅读的bug
  • Loading branch information
jiangtian616 committed Nov 18, 2024
1 parent 8679d80 commit 57ea5b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion changelog/v8.0.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- 修复阅读页重载图片后,本地缓存未更新的bug
- 修复阅读页切换为双列模式时页面渲染异常的bug
- 修复无法自动更新已下载画廊标签的bug
- 修复双列模式下本地阅读的bug

--------------------

Expand All @@ -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
- Fix the bug that the tags of downloaded galleries cannot be automatically updated
- Fix the bug of local reading in double-column mode
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ mixin LocalGalleryDownloadPageLogicMixin on GetxController {
initialIndex: readIndexRecord,
pageCount: images.length,
readProgressRecordStorageKey: gallery.title,
images: localGalleryService.getGalleryImages(gallery),
images: images,
useSuperResolution: false,
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ class HorizontalDoubleColumnLayoutLogic extends BaseLayoutLogic {
HorizontalDoubleColumnLayoutState state = HorizontalDoubleColumnLayoutState();

Completer<void> initCompleter = Completer<void>();

@override
Future<void> 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 {
Expand Down

0 comments on commit 57ea5b7

Please sign in to comment.