修复 TaskListPane 中任务总数显示错误的问题 (#4310)
This commit is contained in:
@@ -262,7 +262,7 @@ public final class TaskListPane extends StackPane {
|
||||
runInFX(() -> {
|
||||
StageNode stageNode = stageNodes.get(task.getStage());
|
||||
if (stageNode != null)
|
||||
stageNode.setTotal(total);
|
||||
stageNode.addTotal(total);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -471,8 +471,8 @@ public final class TaskListPane extends StackPane {
|
||||
updateCounter(++count, total);
|
||||
}
|
||||
|
||||
public void setTotal(int total) {
|
||||
this.total = total;
|
||||
public void addTotal(int n) {
|
||||
this.total += n;
|
||||
updateCounter(count, total);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user