From e834ae3f413e5a614f0b307af20ffdb29070ed94 Mon Sep 17 00:00:00 2001 From: Markus Ongyerth Date: Wed, 12 Oct 2022 07:15:09 +0200 Subject: [PATCH] Use downloadFiles from NatvieShell Try to pass batched downloads to natvie shell as list The new downloadFiles function is TBD in shell implementations. --- src/scripts/shell.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scripts/shell.js b/src/scripts/shell.js index b21d658f9f..cbcd9f8859 100644 --- a/src/scripts/shell.js +++ b/src/scripts/shell.js @@ -42,6 +42,10 @@ export default { * @returns true on success */ downloadFiles(items) { + if (window.NativeShell?.downloadFiles) { + window.NativeShell.downloadFiles(items); + return true; + } if (window.NativeShell?.downloadFile) { items.forEach(item => { window.NativeShell.downloadFile(item);