fixed archive bug

This commit is contained in:
Schnitzel5 2025-03-26 23:46:42 +01:00
parent 202c073859
commit 3b2e6f9fcc
3 changed files with 3 additions and 3 deletions

View file

@ -190,7 +190,7 @@ jobs:
- name: build windows exe
run: |
dart run inno_bundle:build --release --app-version ${{ github.ref_name }} | ForEach-Object { $_ -replace "[a-z]", "" }
dart run inno_bundle:build --release --app-version ${{ github.ref_name }}
- name: build windows zip
run: |

View file

@ -82,7 +82,7 @@ enum BackupType { unknown, mangayomi, mihon, aniyomi, kotatsu, neko }
BackupType checkBackupType(String path, Archive archive) {
if (path.toLowerCase().contains("mangayomi") &&
archive.files.first.name.endsWith(".backup.db")) {
(archive.files.firstOrNull?.name ?? "").endsWith(".backup.db")) {
return BackupType.mangayomi;
} else if (path.toLowerCase().contains("kotatsu") &&
archive.files.where((f) {

View file

@ -23,7 +23,7 @@ final themeModeStateProvider =
typedef _$ThemeModeState = AutoDisposeNotifier<bool>;
String _$followSystemThemeStateHash() =>
r'0c65e1471807dddb2f536d336d1f44b29e9e3a5a';
r'a2d5e573e05364c3c89abe81f25c7f39b0ae91e2';
/// See also [FollowSystemThemeState].
@ProviderFor(FollowSystemThemeState)