mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-15 06:45:42 -04:00
修复 TaskListPane 中任务总数显示错误的问题 (#4310)
This commit is contained in:
parent
cba4ba2799
commit
c9c97a45b7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user