mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
This commit is contained in:
parent
0734c0e83a
commit
947968f23c
|
|
@ -490,7 +490,7 @@ const useFolder = (
|
|||
const closeDialog = (): void =>
|
||||
close(`Transfer${PROCESS_DELIMITER}${path}`);
|
||||
|
||||
openTransferDialog(undefined, path);
|
||||
openTransferDialog(undefined, path, "Extracting");
|
||||
|
||||
try {
|
||||
const unzippedFiles = Object.entries(
|
||||
|
|
@ -609,7 +609,6 @@ const useFolder = (
|
|||
|
||||
if (uniquePath && !basePath) updateFolder(directory, uniquePath);
|
||||
};
|
||||
const movedPaths: string[] = [];
|
||||
const objectReaders = pasteEntries.map<ObjectReader>(([pasteEntry]) => {
|
||||
let aborted = false;
|
||||
|
||||
|
|
@ -619,13 +618,7 @@ const useFolder = (
|
|||
},
|
||||
directory,
|
||||
done: () => {
|
||||
if (moving) {
|
||||
movedPaths
|
||||
.filter(Boolean)
|
||||
.forEach((movedPath) => updateFolder(directory, movedPath));
|
||||
|
||||
copyEntries([]);
|
||||
}
|
||||
if (moving) copyEntries([]);
|
||||
},
|
||||
name: pasteEntry,
|
||||
operation: moving ? "Moving" : "Copying",
|
||||
|
|
@ -633,7 +626,7 @@ const useFolder = (
|
|||
if (aborted) return;
|
||||
|
||||
if (moving) {
|
||||
movedPaths.push(await createPath(pasteEntry, directory));
|
||||
updateFolder(directory, await createPath(pasteEntry, directory));
|
||||
} else await copyFiles(pasteEntry);
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user