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:
parent
c634c6406d
commit
0eec89518d
1 changed files with 5 additions and 3 deletions
|
@ -148,10 +148,12 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function changePresentation(presentation) {
|
function changePresentation(presentation) {
|
||||||
root.presentation = presentation;
|
let pres = presProxyModel.getPresentation(presentation);
|
||||||
console.log(presentation.filePath.toString());
|
root.presentation = pres;
|
||||||
|
console.log(pres.filePath.toString());
|
||||||
updatePageCount(presentationPreview.frameCount);
|
updatePageCount(presentationPreview.frameCount);
|
||||||
console.log("page count " + presentation.pageCount);
|
console.log("page count " + pres.pageCount);
|
||||||
|
presentationPreview.currentFrame = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateTitle(text) {
|
function updateTitle(text) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue