Fixed aborting download bugging out

This commit is contained in:
Elias Müller 2023-05-06 21:15:30 +02:00
parent ccf348bcd3
commit 4bd257b5ba

View File

@ -205,12 +205,12 @@ class _ChatBubbleState extends State<ChatBubble> {
TextButton(onPressed: () { TextButton(onPressed: () {
downloadCore?.then((value) { downloadCore?.then((value) {
if(!value.isCancelled) value.cancel(); if(!value.isCancelled) value.cancel();
setState(() {
downloadProgress = 0;
downloadCore = null;
});
Navigator.of(context).pop(); Navigator.of(context).pop();
}); });
setState(() {
downloadProgress = 0;
downloadCore = null;
});
}, child: const Text("Ja, Abbrechen")) }, child: const Text("Ja, Abbrechen"))
], ],
); );