From d2ad0d63ae3ff0ebf980638bdeaa72aa0e26542d Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 28 Nov 2022 15:06:02 +0800 Subject: [PATCH] Fix comment replacement, remove debug --- apple/OmnivoreKit/Sources/App/PDFSupport/PDFViewer.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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