From 4bd257b5ba9e132da9aaf19cab90aefdf2677436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Sat, 6 May 2023 21:15:30 +0200 Subject: [PATCH] Fixed aborting download bugging out --- lib/screen/pages/talk/chatBubble.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/screen/pages/talk/chatBubble.dart b/lib/screen/pages/talk/chatBubble.dart index 1c53d2e..231e45d 100644 --- a/lib/screen/pages/talk/chatBubble.dart +++ b/lib/screen/pages/talk/chatBubble.dart @@ -205,12 +205,12 @@ class _ChatBubbleState extends State { TextButton(onPressed: () { downloadCore?.then((value) { if(!value.isCancelled) value.cancel(); - setState(() { - downloadProgress = 0; - downloadCore = null; - }); Navigator.of(context).pop(); }); + setState(() { + downloadProgress = 0; + downloadCore = null; + }); }, child: const Text("Ja, Abbrechen")) ], );