Fixed #302
This commit is contained in:
@@ -136,7 +136,7 @@ public final class Launcher extends Application {
|
|||||||
public static final File MINECRAFT_DIRECTORY = getWorkingDirectory("minecraft");
|
public static final File MINECRAFT_DIRECTORY = getWorkingDirectory("minecraft");
|
||||||
public static final File HMCL_DIRECTORY = getWorkingDirectory("hmcl");
|
public static final File HMCL_DIRECTORY = getWorkingDirectory("hmcl");
|
||||||
|
|
||||||
public static final String VERSION = "2.9";
|
public static final String VERSION = "@HELLO_MINECRAFT_LAUNCHER_VERSION_FOR_GRADLE_REPLACING@";
|
||||||
public static final String NAME = "HMCL";
|
public static final String NAME = "HMCL";
|
||||||
public static final String TITLE = NAME + " " + VERSION;
|
public static final String TITLE = NAME + " " + VERSION;
|
||||||
public static final ResourceBundle RESOURCE_BUNDLE = Settings.INSTANCE.getLocale().getResourceBundle();
|
public static final ResourceBundle RESOURCE_BUNDLE = Settings.INSTANCE.getLocale().getResourceBundle();
|
||||||
|
|||||||
@@ -89,10 +89,10 @@ public final class VersionsPage extends StackPane implements WizardPage, Refresh
|
|||||||
chkSnapshot.selectedProperty().addListener(listener);
|
chkSnapshot.selectedProperty().addListener(listener);
|
||||||
chkOld.selectedProperty().addListener(listener);
|
chkOld.selectedProperty().addListener(listener);
|
||||||
|
|
||||||
list.getSelectionModel().selectedItemProperty().addListener((a, b, newValue) -> {
|
list.setOnMouseClicked(e -> {
|
||||||
if (newValue == null)
|
if (list.getSelectionModel().getSelectedIndex() < 0)
|
||||||
return;
|
return;
|
||||||
controller.getSettings().put(libraryId, newValue.getRemoteVersion());
|
controller.getSettings().put(libraryId, list.getSelectionModel().getSelectedItem().getRemoteVersion());
|
||||||
callback.run();
|
callback.run();
|
||||||
});
|
});
|
||||||
refresh();
|
refresh();
|
||||||
|
|||||||
Reference in New Issue
Block a user