diff --git a/apple/OmnivoreKit/Sources/App/PDFSupport/PDFViewer.swift b/apple/OmnivoreKit/Sources/App/PDFSupport/PDFViewer.swift index 3acc92e93..b081212df 100644 --- a/apple/OmnivoreKit/Sources/App/PDFSupport/PDFViewer.swift +++ b/apple/OmnivoreKit/Sources/App/PDFSupport/PDFViewer.swift @@ -85,11 +85,10 @@ import Utils builder.shouldAskForAnnotationUsername = false } .updateControllerConfiguration { controller in - // Store config state so we only run this update closure once saveSettings(configuration: controller.configuration) + // Store config state so we only run this update closure once guard pdfStateObject.controllerNeedsConfig else { return } - print("document is valid", document.isValid) coordinator.setController(controller: controller, dataService: dataService) // Disable the Document Editor