Skip to content

Commit

Permalink
tried to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DattatreyaReddy committed Dec 8, 2022
1 parent 88656d8 commit b514728
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b514728

Please sign in to comment.