mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 04:51:50 +08:00
🎨 Improve performance of exporting .sy.zip for notebook https://github.com/siyuan-note/siyuan/issues/12653
This commit is contained in:
parent
c930c28b93
commit
40abcee32d
@ -1629,6 +1629,8 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
|
||||
}
|
||||
|
||||
for _, asset := range assets {
|
||||
util.PushEndlessProgress(Conf.language(65) + " " + fmt.Sprintf(Conf.language(70), asset))
|
||||
|
||||
asset = string(html.DecodeDestination([]byte(asset)))
|
||||
if strings.Contains(asset, "?") {
|
||||
asset = asset[:strings.LastIndex(asset, "?")]
|
||||
@ -1662,9 +1664,6 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
|
||||
}
|
||||
|
||||
copiedAssets.Add(asset)
|
||||
|
||||
msg := Conf.language(65) + " " + fmt.Sprintf(Conf.language(70), asset)
|
||||
util.PushEndlessProgress(msg)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user