mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 16:01:58 +00:00
fix #466
This commit is contained in:
parent
93f25eaccb
commit
01e03f033c
1 changed files with 3 additions and 1 deletions
|
|
@ -67,7 +67,9 @@ class _DownloadFileScreenState extends ConsumerState<DownloadFileScreen> {
|
||||||
children: [
|
children: [
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await _subscription?.cancel();
|
try {
|
||||||
|
await _subscription?.cancel();
|
||||||
|
} catch (_) {}
|
||||||
if (context.mounted) {
|
if (context.mounted) {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue