adding a function for adding pdfs
This commit is contained in:
parent
6a8266f1f1
commit
ebbdfba4d9
1 changed files with 12 additions and 0 deletions
|
@ -989,6 +989,18 @@ Item {
|
|||
editSwitch("image", image);
|
||||
}
|
||||
|
||||
function addPres(url) {
|
||||
pressqlmodel.newPresentation(url);
|
||||
selectedLibrary = "presentations";
|
||||
presentationLibraryList.currentIndex = pressqlmodel.rowCount();
|
||||
print(pressqlmodel.getPresentation(presentationLibraryList.currentIndex));
|
||||
const presentation = pressqlmodel.getImage(presentationLibraryList.currentIndex);
|
||||
showPassiveNotification("newest image: " + presentation.title);
|
||||
if (!editMode)
|
||||
editMode = true;
|
||||
editSwitch("presentation", presentation);
|
||||
}
|
||||
|
||||
function isDragFile(item) {
|
||||
var extension = item.split('.').pop();
|
||||
var valid = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue