From 881f5e7874281a1f837c0df794e7a94b00384789 Mon Sep 17 00:00:00 2001 From: Glavo Date: Wed, 10 Sep 2025 21:28:03 +0800 Subject: [PATCH] =?UTF-8?q?[release/3.6]=20=E6=A8=A1=E7=BB=84=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E5=88=97=E8=A1=A8=E7=BF=BB=E9=A1=B5=E5=90=8E=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=9B=9E=E5=88=B0=E9=A1=B6=E9=83=A8=20(#4433)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/HMCL-dev/HMCL/pull/4170 Co-authored-by: 辞庐 <109708109+CiiLu@users.noreply.github.com> --- .../java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java index d2da008cc..7d8fdc134 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadListPage.java @@ -229,6 +229,7 @@ public class DownloadListPage extends Control implements DecoratorPage, VersionP } private static class ModDownloadListPageSkin extends SkinBase { + private final JFXListView listView = new JFXListView<>(); protected ModDownloadListPageSkin(DownloadListPage control) { super(control); @@ -449,6 +450,8 @@ public class DownloadListPage extends Control implements DecoratorPage, VersionP boolean disableNext = disableAll || pageOffset == pageCount - 1; nextPageButton.setDisable(disableNext); lastPageButton.setDisable(disableNext); + + listView.scrollTo(0); }; FXUtils.onChange(control.pageCount, pageCountN -> { @@ -504,7 +507,6 @@ public class DownloadListPage extends Control implements DecoratorPage, VersionP } }); - JFXListView listView = new JFXListView<>(); spinnerPane.setContent(listView); Bindings.bindContent(listView.getItems(), getSkinnable().items); FXUtils.onClicked(listView, () -> {