Fix compilation error

This commit is contained in:
huanghongxun
2019-02-24 23:13:31 +08:00
parent def45cc3e4
commit dc1df98277
4 changed files with 4 additions and 4 deletions

View File

@@ -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());

View File

@@ -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(() -> {

View File

@@ -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()));

View File

@@ -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();
} }