mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 17:25:32 +00:00
improve cover image handling message
This commit is contained in:
parent
b0baddc333
commit
4940c18cbf
1 changed files with 4 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ import 'dart:io';
|
|||
import 'dart:typed_data';
|
||||
import 'package:epubx/epubx.dart';
|
||||
import 'package:file_picker/file_picker.dart';
|
||||
import 'package:mangayomi/eval/model/m_bridge.dart';
|
||||
import 'package:mangayomi/main.dart';
|
||||
import 'package:mangayomi/models/chapter.dart';
|
||||
import 'package:mangayomi/models/manga.dart';
|
||||
|
|
@ -139,6 +140,9 @@ extension Uint8ListExtensions on Uint8List {
|
|||
if (length < 5) {
|
||||
return this;
|
||||
}
|
||||
botToast(
|
||||
"Cover image is larger than 5MB (${length.toStringAsFixed(2)}MB). Skipping cover image.",
|
||||
);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue