diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a87700c8..5f55a4ab 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -159,7 +159,7 @@ jobs: Copy-Item "${env:GITHUB_WORKSPACE}\scripts\${{ env.pkg_name }}-x64.wxs" . Copy-Item "${env:GITHUB_WORKSPACE}\assets\icons\launcher\sorayomi_icon.ico" . heat dir data -cg data -dr data -sreg -sfrag -gg -o data.wxs - candle -arch x64 -dVersion="${{ github.ref_name }}" -dUpgradeCode="$upgradeCode" -dIcon="icon.ico" "${{ env.pkg_name }}-x64.wxs" data.wxs + candle -arch x64 -dVersion="${{ github.ref_name }}" -dUpgradeCode="$upgradeCode" -dIcon="sorayomi_icon.ico" "${{ env.pkg_name }}-x64.wxs" data.wxs light -b data "${{ env.pkg_name }}-x64.wixobj" data.wixobj -o "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.msi" Move-Item "${{ env.pkg_name }}-${{ github.ref_name }}-${{ matrix.target }}-x64.msi" "${env:GITHUB_WORKSPACE}" diff --git a/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart b/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart index 8b1297b0..ed2d0379 100644 --- a/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart +++ b/lib/src/features/manga_book/presentation/updates/widgets/chapter_manga_list_tile.dart @@ -6,8 +6,10 @@ import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; +import 'package:go_router/go_router.dart'; import '../../../../../constants/app_sizes.dart'; +import '../../../../../routes/router_config.dart'; import '../../../../../utils/extensions/custom_extensions.dart'; import '../../../../../widgets/server_image.dart'; import '../../../domain/chapter/chapter_model.dart'; @@ -71,8 +73,17 @@ class ChapterMangaListTile extends StatelessWidget { selectedTileColor: context.isDarkMode ? Colors.grey.shade700 : Colors.grey.shade300, selected: isSelected, - onTap: canTapSelect && pair.chapter != null - ? () => toggleSelect(pair.chapter!) + onTap: pair.chapter != null && pair.manga != null + ? () { + if (canTapSelect) { + toggleSelect(pair.chapter!); + } else { + context.push( + Routes.getReader( + "${pair.manga!.id}", "${pair.chapter!.index}"), + ); + } + } : null, onLongPress: pair.chapter != null ? () => toggleSelect(pair.chapter!) : null,