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