changePresentation works now

This also now makes sure that when switching presentations
in the editor we are jumping back to the beginning of the
presentation rather than getting lost in the last held currentFrame.
This commit is contained in:
Chris Cochrun 2023-03-05 07:21:10 -06:00
parent c634c6406d
commit 0eec89518d

View file

@ -148,10 +148,12 @@ Item {
}
function changePresentation(presentation) {
root.presentation = presentation;
console.log(presentation.filePath.toString());
let pres = presProxyModel.getPresentation(presentation);
root.presentation = pres;
console.log(pres.filePath.toString());
updatePageCount(presentationPreview.frameCount);
console.log("page count " + presentation.pageCount);
console.log("page count " + pres.pageCount);
presentationPreview.currentFrame = 0;
}
function updateTitle(text) {