From de78e2223a6df24ae86d546562d22aeae8ae6136 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Thu, 8 Dec 2022 16:42:51 +0530 Subject: [PATCH] Remove reundant blocking progress bar --- lib/ui/viewer/gallery/gallery_app_bar_widget.dart | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/lib/ui/viewer/gallery/gallery_app_bar_widget.dart index 526cf3b76..303358a89 100644 --- a/lib/ui/viewer/gallery/gallery_app_bar_widget.dart +++ b/lib/ui/viewer/gallery/gallery_app_bar_widget.dart @@ -426,20 +426,14 @@ class _GalleryAppBarWidgetState extends State { } Future _showShareCollectionDialog() async { - var collection = widget.collection; - final dialog = createProgressDialog(context, "Please wait..."); - await dialog.show(); + final collection = widget.collection; try { if (collection == null || widget.type != GalleryType.ownedCollection) { throw Exception( "Cannot share empty collection of type ${widget.type}", ); - } else { - final sharees = - await CollectionsService.instance.getSharees(collection.id); - collection = collection.copyWith(sharees: sharees); } - await dialog.hide(); + // await dialog.hide(); unawaited( routeToPage( context, @@ -448,7 +442,7 @@ class _GalleryAppBarWidgetState extends State { ); } catch (e, s) { _logger.severe(e, s); - await dialog.hide(); + // await dialog.hide(); showGenericErrorDialog(context); } }