From 4fa07661bb35ba78f57dec3368565f566bf37868 Mon Sep 17 00:00:00 2001 From: Glavo Date: Sat, 21 Feb 2026 22:19:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20MultipleSourceVersionList.?= =?UTF-8?q?refreshAsync=20=E4=BB=BB=E5=8A=A1=E5=90=8D=E7=A7=B0=20(#5602)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jackhuang/hmcl/download/MultipleSourceVersionList.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/MultipleSourceVersionList.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/MultipleSourceVersionList.java index 4f2676c50..89e3eb5de 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/download/MultipleSourceVersionList.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/download/MultipleSourceVersionList.java @@ -51,12 +51,14 @@ public class MultipleSourceVersionList extends VersionList { VersionList versionList = backends[sourceIndex]; Task refreshTask = versionList.refreshAsync(gameVersion); - return new Task() { + return new Task<>() { private Task nextTask = null; { setSignificance(TaskSignificance.MODERATE); - setName("MultipleSourceVersionList.refreshAsync(" + sourceIndex + ")"); + setName("MultipleSourceVersionList.refreshAsync(task=%s, index=%d, all=%d)".formatted( + refreshTask.getName(), sourceIndex, backends.length) + ); } @Override