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