From d2499e8df33f67fc2ffab4dc25486952bd6853f2 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Sat, 24 Sep 2022 14:58:44 -0500 Subject: [PATCH] adding multiple pdfs --- src/qml/presenter/Library.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qml/presenter/Library.qml b/src/qml/presenter/Library.qml index 922bd3a..4396b34 100644 --- a/src/qml/presenter/Library.qml +++ b/src/qml/presenter/Library.qml @@ -1034,6 +1034,7 @@ Item { } function addFiles(files) { + showPassiveNotification("More than one file"); for (let i = 0; i < files.length; i++) { let file = files[i]; let ext = file.split('.').pop() @@ -1045,9 +1046,9 @@ Item { { addImg(file); } - if (presexts.includes(extension)) + if (presexts.includes(ext)) { - showPassiveNotification("it's a presentation!"); + addPres(file); return; } }