浏览代码

Show the success toast only if files were actually deleted

vishnukvmd 3 年之前
父节点
当前提交
2949f0a0d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/utils/delete_file_util.dart

+ 1 - 1
lib/utils/delete_file_util.dart

@@ -109,9 +109,9 @@ Future<void> deleteFilesFromEverywhere(
   if (deletedFiles.isNotEmpty) {
     Bus.instance
         .fire(LocalPhotosUpdatedEvent(deletedFiles, type: EventType.deleted));
+    showShortToast("moved to trash");
   }
   await dialog.hide();
-  showShortToast("moved to trash");
   if (uploadedFilesToBeTrashed.isNotEmpty) {
     RemoteSyncService.instance.sync(silently: true);
   }