mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-11 21:06:37 -04:00
parent
20ed42ab8a
commit
2ee5d9ceed
@ -413,7 +413,7 @@ public class DownloadListPage extends Control implements DecoratorPage, VersionP
|
|||||||
searchAction.handle(event);
|
searchAction.handle(event);
|
||||||
});
|
});
|
||||||
lastPageButton.setDisable(true);
|
lastPageButton.setDisable(true);
|
||||||
control.pageCount.addListener((observable, oldValue, newValue) -> lastPageButton.setDisable(control.pageCount.get() == -1));
|
control.pageCount.addListener((observable, oldValue, newValue) -> lastPageButton.setDisable(control.pageCount.get() == -1 || control.pageOffset.get() >= control.pageCount.get() - 1));
|
||||||
|
|
||||||
Pane placeholder = new Pane();
|
Pane placeholder = new Pane();
|
||||||
HBox.setHgrow(placeholder, Priority.SOMETIMES);
|
HBox.setHgrow(placeholder, Priority.SOMETIMES);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user