mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-03 19:36:53 -04:00
update
This commit is contained in:
parent
3eddfa23b7
commit
20e6c62153
@ -229,6 +229,7 @@ public class DownloadListPage extends Control implements DecoratorPage, VersionP
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static class ModDownloadListPageSkin extends SkinBase<DownloadListPage> {
|
private static class ModDownloadListPageSkin extends SkinBase<DownloadListPage> {
|
||||||
|
private final JFXListView<RemoteMod> listView = new JFXListView<>();
|
||||||
protected ModDownloadListPageSkin(DownloadListPage control) {
|
protected ModDownloadListPageSkin(DownloadListPage control) {
|
||||||
super(control);
|
super(control);
|
||||||
|
|
||||||
@ -449,6 +450,8 @@ public class DownloadListPage extends Control implements DecoratorPage, VersionP
|
|||||||
boolean disableNext = disableAll || pageOffset == pageCount - 1;
|
boolean disableNext = disableAll || pageOffset == pageCount - 1;
|
||||||
nextPageButton.setDisable(disableNext);
|
nextPageButton.setDisable(disableNext);
|
||||||
lastPageButton.setDisable(disableNext);
|
lastPageButton.setDisable(disableNext);
|
||||||
|
|
||||||
|
listView.scrollTo(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
FXUtils.onChange(control.pageCount, pageCountN -> {
|
FXUtils.onChange(control.pageCount, pageCountN -> {
|
||||||
@ -504,7 +507,6 @@ public class DownloadListPage extends Control implements DecoratorPage, VersionP
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
JFXListView<RemoteMod> listView = new JFXListView<>();
|
|
||||||
spinnerPane.setContent(listView);
|
spinnerPane.setContent(listView);
|
||||||
Bindings.bindContent(listView.getItems(), getSkinnable().items);
|
Bindings.bindContent(listView.getItems(), getSkinnable().items);
|
||||||
FXUtils.onClicked(listView, () -> {
|
FXUtils.onClicked(listView, () -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user