fix(修复问题): 修复PDF打开后卡住的问题
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-31 09:51:04 +08:00
1 parent 4962955a40
commit e54203b7f4
2 files changed
+3

No files matched your search

+1
View File
@@ -13086,6 +13086,7 @@ function showError(err, empty = !state.doc) {
function setBusy(busy, text = "", percent = 0, status = "", tab = documentTab()) {
const operation = operationRequest(tab);
if (!busy && operation) tab.preparationBusy = true;
busy ||= Boolean(tab.editTask || operation);
if (operation?.preparing && operation.progress) ({text, percent} = operation.progress);
const resumeSearch = tab.busy && !busy && tab.state.searchPaused;
+2
View File
@@ -1622,6 +1622,8 @@ func (e *businessEngine) checkDocument(name string) error {
return nil
}
switch name {
case "ofdgoFontFaces", "ofdgoFontMenu", "ofdgoFontPreferenceOrder", "ofdgoFontFace", "ofdgoCheckTextFont":
return nil
case "ofdgoDiscardObjects", "ofdgoExportObjects", "ofdgoCheckDocument", "ofdgoPDFContext", "ofdgoOpenPDF", "ofdgoOpen", "ofdgoLoadPDF", "ofdgoConfigure", "ofdgoDocumentInfo", "ofdgoSVGFontData", "ofdgoRenderBackends", "ofdgoOutputFormats", "ofdgoExportFormats", "ofdgoParsePageRange", "ofdgoMatchFontFiles", "ofdgoOutlineLinks", "ofdgoDocumentNavigation", "ofdgoInvoices", "ofdgoRenderPage", "ofdgoSearchPage", "ofdgoPageTextString", "ofdgoOpenLinks", "ofdgoDiscardPrint", "ofdgoDiscardSave", "ofdgoDetectFormat", "ofdgoConvertFile", "ofdgoPackFiles", "ofdgoLoadImport", "ofdgoCreateDocument", "ofdgoLayoutPrint", "ofdgoPrintSide", "ofdgoPrintPDF":
return nil
default: