Skip to content

Commit 5f864a9

Browse files
committed
Fix #5207
1 parent 72d9ca3 commit 5f864a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

HMCL/src/main/java/org/jackhuang/hmcl/ui/download/DownloadPage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,9 @@ public void showModpackDownloads() {
202202
tab.select(modpackTab, false);
203203
}
204204

205-
public void showResourcePackDownloads() {
205+
public DownloadListPage showResourcePackDownloads() {
206206
tab.select(resourcePackTab, false);
207+
return resourcePackTab.getNode();
207208
}
208209

209210
public DownloadListPage showModDownloads() {

HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ResourcePackListPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public void onAddFiles() {
164164
}
165165

166166
private void onDownload() {
167-
Controllers.getDownloadPage().showResourcePackDownloads();
167+
Controllers.getDownloadPage().showResourcePackDownloads().selectVersion(instanceId);
168168
Controllers.navigate(Controllers.getDownloadPage());
169169
}
170170

0 commit comments

Comments
 (0)