Browse Source

remove toast

Neeraj Gupta 2 years ago
parent
commit
34c4fc0215

+ 4 - 2
lib/ui/actions/collection/collection_sharing_actions.dart

@@ -294,8 +294,10 @@ class CollectionActions {
                 files,
               );
               // collection should be empty on server now
-              await collectionsService.trashEmptyCollection(collection,
-                  fireEvent: true);
+              await collectionsService.trashEmptyCollection(
+                collection,
+                fireEvent: true,
+              );
             } catch (e) {
               logger.severe("Failed to keep photos and delete collection", e);
               rethrow;

+ 4 - 1
lib/ui/viewer/file/thumbnail_widget.dart

@@ -241,7 +241,10 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
         _cacheAndRender(imageProvider);
       }
       ThumbnailInMemoryLruCache.put(
-          widget.file!, thumbData, thumbnailSmallSize);
+        widget.file!,
+        thumbData,
+        thumbnailSmallSize,
+      );
     }).catchError((e) {
       _logger.warning("Could not load image: ", e);
       _errorLoadingLocalThumbnail = true;

+ 0 - 1
lib/ui/viewer/gallery/gallery_app_bar_widget.dart

@@ -380,7 +380,6 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
       try {
         await CollectionsService.instance
             .trashEmptyCollection(widget.collection!, fireEvent: true);
-        showShortToast(context, "Successfully deleted album");
         await dialog.hide();
         Navigator.of(context).pop();
       } catch (e, s) {