Always show the advanced version setting pane as some people cannot find the options

This commit is contained in:
huangyuhui
2018-06-27 01:06:43 +08:00
parent 71272371e4
commit c4db9c9e12
3 changed files with 3 additions and 13 deletions

View File

@@ -107,8 +107,6 @@ public final class VersionSettingsController {
} }
public void loadVersionSetting(Profile profile, String versionId) { public void loadVersionSetting(Profile profile, String versionId) {
rootPane.getChildren().remove(advancedSettingsPane);
this.profile = profile; this.profile = profile;
this.versionId = versionId; this.versionId = versionId;
@@ -237,14 +235,6 @@ public final class VersionSettingsController {
gameDirItem.setSubtitle(profile.getRepository().getRunDirectory(versionId).getAbsolutePath()); gameDirItem.setSubtitle(profile.getRepository().getRunDirectory(versionId).getAbsolutePath());
} }
@FXML
private void onShowAdvanced() {
if (!rootPane.getChildren().contains(advancedSettingsPane))
rootPane.getChildren().add(advancedSettingsPane);
else
rootPane.getChildren().remove(advancedSettingsPane);
}
@FXML @FXML
private void onExploreIcon() { private void onExploreIcon() {
FileChooser chooser = new FileChooser(); FileChooser chooser = new FileChooser();

View File

@@ -104,8 +104,8 @@
</right> </right>
</BorderPane> </BorderPane>
</ComponentList> </ComponentList>
<HBox alignment="CENTER" style="-fx-padding: 10 0 10 0;"> <HBox alignment="CENTER_LEFT" style="-fx-padding: 20 0 12 0;">
<JFXButton text="%settings.advanced" onMouseClicked="#onShowAdvanced" buttonType="RAISED" styleClass="jfx-button-raised"/> <Label text="%settings.advanced" style="-fx-text-fill: #616161;" />
</HBox> </HBox>
<ComponentList fx:id="advancedSettingsPane" depth="1"> <ComponentList fx:id="advancedSettingsPane" depth="1">
<JFXTextField labelFloat="true" promptText="%settings.advanced.jvm_args" styleClass="fit-width" <JFXTextField labelFloat="true" promptText="%settings.advanced.jvm_args" styleClass="fit-width"

View File

@@ -240,7 +240,7 @@ selector.custom=Custom
settings=Settings settings=Settings
settings.advanced=Advanced settings.advanced=Advanced Settings
settings.advanced.dont_check_game_completeness=Don't check game completeness settings.advanced.dont_check_game_completeness=Don't check game completeness
settings.advanced.game_dir.default=Default (.minecraft/) settings.advanced.game_dir.default=Default (.minecraft/)
settings.advanced.game_dir.independent=Independent (.minecraft/versions/<version name>/, except assets,libraries) settings.advanced.game_dir.independent=Independent (.minecraft/versions/<version name>/, except assets,libraries)