diff --git a/app/lib/widget/handler/remove_selection_handler.dart b/app/lib/widget/handler/remove_selection_handler.dart index c0613d7c..9fba1bfb 100644 --- a/app/lib/widget/handler/remove_selection_handler.dart +++ b/app/lib/widget/handler/remove_selection_handler.dart @@ -27,6 +27,7 @@ class RemoveSelectionHandler { bool shouldCleanupAlbum = true, bool isRemoveOpened = false, bool isMoveToTrash = false, + bool shouldShowProcessingText = true, }) async { final selectedFiles = await InflateFileDescriptor(_c)(account, selection); final String processingText, successText; @@ -42,13 +43,15 @@ class RemoveSelectionHandler { failureText = (count) => L10n.global().deleteSelectedFailureNotification(count); } - SnackBarManager().showSnackBar( - SnackBar( - content: Text(processingText), - duration: k.snackBarDurationShort, - ), - canBeReplaced: true, - ); + if (shouldShowProcessingText) { + SnackBarManager().showSnackBar( + SnackBar( + content: Text(processingText), + duration: k.snackBarDurationShort, + ), + canBeReplaced: true, + ); + } var failureCount = 0; await Remove(KiwiContainer().resolve())( diff --git a/app/lib/widget/viewer.dart b/app/lib/widget/viewer.dart index c19b8e97..1f34d8a1 100644 --- a/app/lib/widget/viewer.dart +++ b/app/lib/widget/viewer.dart @@ -653,6 +653,7 @@ class _ViewerState extends State selection: [file], isRemoveOpened: true, isMoveToTrash: true, + shouldShowProcessingText: false, )); _removeCurrentItemFromStream(context, index); }