Skip to content

Commit 2876c7a

Browse files
committed
fix: GUI 后处理阶段进度提示不显示
progress_callback 收到 status="postprocessing" 时未更新 _progress["status"],前端 postprocessing 条件永远不成立。
1 parent 31e0052 commit 2876c7a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • quantclass_sync_internal/gui

quantclass_sync_internal/gui/api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,10 @@ def progress_callback(product_name: str, completed: int, total: int, *,
866866
if status == "init":
867867
self._progress["total"] = total
868868
return
869+
# 后处理阶段:更新顶层 status 供前端检测
870+
if status == "postprocessing":
871+
self._progress["status"] = "postprocessing"
872+
return
869873
# 计算本产品同步的文件数(新建 + 更新)
870874
files_count = (stats.created_files + stats.updated_files) if stats else 0
871875
# 追加到已完成产品列表,包含 error 字段供前端展示失败原因

0 commit comments

Comments
 (0)