Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
actually throttle restore
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Jan 12, 2024
commit cfe60f683d8da69a92044852bd06b275f9f56f6d
2 changes: 1 addition & 1 deletion apps/files_trashbin/src/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ import PQueue from 'p-queue'
this.fileMultiSelectMenu.toggleLoading('restore', true)
var restorePromises = files.map(function(file) {
return self.deleteOperationQueue.add(async () => {
self.client.move(OC.joinPaths('trash', self.getCurrentDirectory(), file), OC.joinPaths('restore', file), true)
await self.client.move(OC.joinPaths('trash', self.getCurrentDirectory(), file), OC.joinPaths('restore', file), true)
self._removeCallback([file])
})
})
Expand Down