checking to make sure we don't need to update pageCount
This commit is contained in:
parent
d6da3b546c
commit
187481295f
1 changed files with 3 additions and 0 deletions
|
@ -167,6 +167,9 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updatePageCount(pageCount) {
|
function updatePageCount(pageCount) {
|
||||||
|
let curPageCount = presentation.pageCount;
|
||||||
|
if (curPageCount === presentation.pageCount)
|
||||||
|
return;
|
||||||
presentation.pageCount = pageCount;
|
presentation.pageCount = pageCount;
|
||||||
pressqlmodel.updatePageCount(presentation.id, pageCount);
|
pressqlmodel.updatePageCount(presentation.id, pageCount);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue