Explorar el Código

Show the success toast only if files were actually deleted

vishnukvmd hace 3 años
padre
commit
2949f0a0d5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
   }