diff --git a/CMakeUserPresets.json.template b/CMakeUserPresets.json.template index 5354427..01066a5 100644 --- a/CMakeUserPresets.json.template +++ b/CMakeUserPresets.json.template @@ -6,7 +6,7 @@ "name": "win-local", "displayName": "Windows • Debug (local — build dir outside OneDrive/spaces)", "inherits": "windows-debug", - "binaryDir": "C:/Users/@USERNAME@/pdfeng-build/win-local", + "binaryDir": "D:/pdfeng-build/win-local", "cacheVariables": { "PDFENGINE_WITH_PDFIUM": "ON", "PDFENGINE_WITH_QPDF": "ON" @@ -16,8 +16,11 @@ "name": "win-local-pdfium", "displayName": "Windows • RelWithDebInfo + PDFium (static CRT — build dir outside OneDrive/spaces)", "inherits": "windows-release", - "binaryDir": "C:/Users/@USERNAME@/pdfeng-build/win-local-pdfium", - "cacheVariables": { "PDFENGINE_WITH_PDFIUM": "ON" } + "binaryDir": "D:/pdfeng-build/win-local-pdfium", + "cacheVariables": { + "PDFENGINE_WITH_PDFIUM": "ON", + "PDFENGINE_WITH_QPDF": "ON" + } } ], "buildPresets": [ diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index f78b79d..6663d88 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -564,7 +564,9 @@ function App() { const parentOrigin = urlParams.get('parent_origin') || import.meta.env.VITE_PARENT_ORIGIN || '*'; window.parent.postMessage({ type: 'REMOTE_SAVE_COMPLETE' }, parentOrigin); } else { - await gatewayService.exportDocument(selectedDocId, activeDoc.filename); + // When running locally outside an iframe, edits are already auto-saved to the gateway DB. + // We just simulate a save delay to provide UI feedback, instead of downloading the file. + await new Promise(resolve => setTimeout(resolve, 600)); } } catch (e) { console.error('Save failed', e); @@ -682,7 +684,7 @@ function App() { canAssemble={can('canAssemble')} onUpload={handleUpload} onShowVersionHistory={() => setVersionHistoryModalOpen(true)} - onSave={handleSave} + onSave={isRemote ? handleSave : undefined} isInspectorOpen={isInspectorOpen} onToggleInspector={toggleInspector} /> diff --git a/gateway/debug_preview_region.png b/gateway/debug_preview_region.png index fd7d60a..ae84973 100644 Binary files a/gateway/debug_preview_region.png and b/gateway/debug_preview_region.png differ