Explorar el Código

Remove unnecessary popping of Navigator stack (#1300)

Ashil hace 2 años
padre
commit
092bf64d06
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  1. 0 2
      lib/ui/actions/file/file_actions.dart

+ 0 - 2
lib/ui/actions/file/file_actions.dart

@@ -54,7 +54,6 @@ Future<void> showSingleFileDeleteSheet(
           await deleteFilesFromRemoteOnly(context, [file]);
           await deleteFilesFromRemoteOnly(context, [file]);
           showShortToast(context, S.of(context).movedToTrash);
           showShortToast(context, S.of(context).movedToTrash);
           if (isRemoteOnly) {
           if (isRemoteOnly) {
-            Navigator.of(context, rootNavigator: true).pop();
             if (onFileRemoved != null) {
             if (onFileRemoved != null) {
               onFileRemoved(file);
               onFileRemoved(file);
             }
             }
@@ -79,7 +78,6 @@ Future<void> showSingleFileDeleteSheet(
         onTap: () async {
         onTap: () async {
           await deleteFilesOnDeviceOnly(context, [file]);
           await deleteFilesOnDeviceOnly(context, [file]);
           if (isLocalOnly) {
           if (isLocalOnly) {
-            Navigator.of(context, rootNavigator: true).pop();
             if (onFileRemoved != null) {
             if (onFileRemoved != null) {
               onFileRemoved(file);
               onFileRemoved(file);
             }
             }