Sfoglia il codice sorgente

:art: Improve performance of exporting .sy.zip for notebook https://github.com/siyuan-note/siyuan/issues/12653

Daniel 8 mesi fa
parent
commit
40abcee32d
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      kernel/model/export.go

+ 2 - 3
kernel/model/export.go

@@ -1629,6 +1629,8 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
 		}
 		}
 
 
 		for _, asset := range assets {
 		for _, asset := range assets {
+			util.PushEndlessProgress(Conf.language(65) + " " + fmt.Sprintf(Conf.language(70), asset))
+
 			asset = string(html.DecodeDestination([]byte(asset)))
 			asset = string(html.DecodeDestination([]byte(asset)))
 			if strings.Contains(asset, "?") {
 			if strings.Contains(asset, "?") {
 				asset = asset[:strings.LastIndex(asset, "?")]
 				asset = asset[:strings.LastIndex(asset, "?")]
@@ -1662,9 +1664,6 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
 			}
 			}
 
 
 			copiedAssets.Add(asset)
 			copiedAssets.Add(asset)
-
-			msg := Conf.language(65) + " " + fmt.Sprintf(Conf.language(70), asset)
-			util.PushEndlessProgress(msg)
 		}
 		}
 	}
 	}