From 187481295f38f9d8bc706b09f22341a819ff87fe Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 17 Jan 2023 05:52:59 -0600 Subject: [PATCH] checking to make sure we don't need to update pageCount --- src/qml/presenter/PresentationEditor.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qml/presenter/PresentationEditor.qml b/src/qml/presenter/PresentationEditor.qml index dac4ce0..43e1067 100644 --- a/src/qml/presenter/PresentationEditor.qml +++ b/src/qml/presenter/PresentationEditor.qml @@ -167,6 +167,9 @@ Item { } function updatePageCount(pageCount) { + let curPageCount = presentation.pageCount; + if (curPageCount === presentation.pageCount) + return; presentation.pageCount = pageCount; pressqlmodel.updatePageCount(presentation.id, pageCount); }