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, files,
); );
// collection should be empty on server now // collection should be empty on server now
await collectionsService.trashEmptyCollection(collection, await collectionsService.trashEmptyCollection(
fireEvent: true); collection,
fireEvent: true,
);
} catch (e) { } catch (e) {
logger.severe("Failed to keep photos and delete collection", e); logger.severe("Failed to keep photos and delete collection", e);
rethrow; rethrow;

View file

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

View file

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