This commit is contained in:
huangyuhui
2018-08-22 02:08:49 +08:00
parent c7bfb9a11d
commit ad568d2b9f
3 changed files with 14 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ public final class VersionsPage extends StackPane implements WizardPage, Refresh
private final DownloadProvider downloadProvider;
private final String libraryId;
private final String title;
private final Runnable callback;
private final WizardController controller;
@FXML
private JFXListView<VersionsPageItem> list;
@@ -77,7 +77,7 @@ public final class VersionsPage extends StackPane implements WizardPage, Refresh
this.gameVersion = gameVersion;
this.downloadProvider = downloadProvider;
this.libraryId = libraryId;
this.callback = callback;
this.controller = controller;
this.versionList = downloadProvider.getVersionListById(libraryId);
FXUtils.loadFXML(this, "/assets/fxml/download/versions.fxml");
@@ -160,5 +160,5 @@ public final class VersionsPage extends StackPane implements WizardPage, Refresh
}
@FXML
private void onBack() { callback.run(); }
private void onBack() { controller.onPrev(true); }
}