Fix compilation error
This commit is contained in:
@@ -110,7 +110,7 @@ public class AddAuthlibInjectorServerPane extends StackPane implements DialogAwa
|
|||||||
addServerPane.setDisable(false);
|
addServerPane.setDisable(false);
|
||||||
nextPane.hideSpinner();
|
nextPane.hideSpinner();
|
||||||
|
|
||||||
if (isDependentsSucceeded) {
|
if (isDependentSucceeded) {
|
||||||
lblServerName.setText(serverBeingAdded.getName());
|
lblServerName.setText(serverBeingAdded.getName());
|
||||||
lblServerUrl.setText(serverBeingAdded.getUrl());
|
lblServerUrl.setText(serverBeingAdded.getUrl());
|
||||||
|
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ public final class VersionsPage extends BorderPane implements WizardPage, Refres
|
|||||||
public void refresh() {
|
public void refresh() {
|
||||||
transitionHandler.setContent(spinner, ContainerAnimations.FADE.getAnimationProducer());
|
transitionHandler.setContent(spinner, ContainerAnimations.FADE.getAnimationProducer());
|
||||||
executor = versionList.refreshAsync(gameVersion, downloadProvider).whenComplete((isDependentSucceeded, exception) -> {
|
executor = versionList.refreshAsync(gameVersion, downloadProvider).whenComplete((isDependentSucceeded, exception) -> {
|
||||||
if (isDependentsSucceeded) {
|
if (isDependentSucceeded) {
|
||||||
List<VersionsPageItem> items = loadVersions();
|
List<VersionsPageItem> items = loadVersions();
|
||||||
|
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public final class ModListPage extends Control {
|
|||||||
}
|
}
|
||||||
}).whenComplete(Schedulers.javafx(), (list, isDependentSucceeded, exception) -> {
|
}).whenComplete(Schedulers.javafx(), (list, isDependentSucceeded, exception) -> {
|
||||||
loadingProperty().set(false);
|
loadingProperty().set(false);
|
||||||
if (isDependentsSucceeded)
|
if (isDependentSucceeded)
|
||||||
FXUtils.onWeakChangeAndOperate(parentTab.getSelectionModel().selectedItemProperty(), newValue -> {
|
FXUtils.onWeakChangeAndOperate(parentTab.getSelectionModel().selectedItemProperty(), newValue -> {
|
||||||
if (newValue != null && newValue.getUserData() == ModListPage.this)
|
if (newValue != null && newValue.getUserData() == ModListPage.this)
|
||||||
itemsProperty().setAll(list.stream().map(ModListPageSkin.ModInfoObject::new).collect(Collectors.toList()));
|
itemsProperty().setAll(list.stream().map(ModListPageSkin.ModInfoObject::new).collect(Collectors.toList()));
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ public class WorldListPage extends ListPage<WorldListItem> {
|
|||||||
Task.ofResult(() -> World.getWorlds(savesDir).parallel().collect(Collectors.toList()))
|
Task.ofResult(() -> World.getWorlds(savesDir).parallel().collect(Collectors.toList()))
|
||||||
.whenComplete(Schedulers.javafx(), (result, isDependentSucceeded, exception) -> {
|
.whenComplete(Schedulers.javafx(), (result, isDependentSucceeded, exception) -> {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
if (isDependentsSucceeded)
|
if (isDependentSucceeded)
|
||||||
itemsProperty().setAll(result.stream().map(WorldListItem::new).collect(Collectors.toList()));
|
itemsProperty().setAll(result.stream().map(WorldListItem::new).collect(Collectors.toList()));
|
||||||
}).start();
|
}).start();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user