From ac32f6e20a8159d360be212d79d1e0b96f5243a0 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 8 Mar 2023 13:30:34 -0600 Subject: [PATCH] fix adding file selects proper library --- src/qml/presenter/Library.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qml/presenter/Library.qml b/src/qml/presenter/Library.qml index b2978d5..4add06f 100644 --- a/src/qml/presenter/Library.qml +++ b/src/qml/presenter/Library.qml @@ -288,7 +288,7 @@ Item { function addVideo(url) { videoProxyModel.videoModel.newVideo(url); - selectedLibrary = "videos"; + selectedLibrary = "video"; videoLibraryList.currentIndex = videoProxyModel.videoModel.rowCount(); console.log(videoProxyModel.videoModel.getVideo(videoLibraryList.currentIndex)); const video = videoProxyModel.videoModel.getVideo(videoLibraryList.currentIndex); @@ -300,7 +300,7 @@ Item { function addImg(url) { imageProxyModel.imageModel.newImage(url); - selectedLibrary = "images"; + selectedLibrary = "image"; imageLibraryList.currentIndex = imageProxyModel.imageModel.rowCount(); console.log(imageProxyModel.imageModel.getImage(imageLibraryList.currentIndex)); const image = imageProxyModel.imageModel.getImage(imageLibraryList.currentIndex); @@ -318,7 +318,7 @@ Item { console.log("PAGECOUNT: " + pdf.pageCount); } presProxyModel.presentationModel.newPresentation(url, pdf.pageCount); - selectedLibrary = "presentations"; + selectedLibrary = "presentation"; presentationLibraryList.currentIndex = presProxyModel.presentationModel.rowCount(); console.log(presProxyModel.presentationModel.getPresentation(presentationLibraryList.currentIndex)); const presentation = presProxyModel.presentationModel.getImage(presentationLibraryList.currentIndex);