remove toast
This commit is contained in:
parent
17d85b86a8
commit
34c4fc0215
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue