remove toast

This commit is contained in:
Neeraj Gupta 2023-01-12 16:39:33 +05:30
parent 17d85b86a8
commit 34c4fc0215
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
3 changed files with 8 additions and 4 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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) {