diff --git a/src/sporemodder/view/dialogs/CreateProjectUI.java b/src/sporemodder/view/dialogs/CreateProjectUI.java index db7030d..437917e 100644 --- a/src/sporemodder/view/dialogs/CreateProjectUI.java +++ b/src/sporemodder/view/dialogs/CreateProjectUI.java @@ -252,6 +252,9 @@ private void initialize() { if (projectNameField.getText().equals(oldValue)) { projectNameField.setText(newValue); } + if (Objects.equals(uniqueTagTextField.getText(), ModBundle.generateUniqueTagFromName(oldValue))) { + uniqueTagTextField.setText(ModBundle.generateUniqueTagFromName(newValue)); + } validateModFields(); }); projectNameField.textProperty().addListener((obs, oldValue, newValue) -> { diff --git a/src/sporemodder/view/dialogs/ProgramSettingsUI.java b/src/sporemodder/view/dialogs/ProgramSettingsUI.java index 6f8c24e..d29c56d 100644 --- a/src/sporemodder/view/dialogs/ProgramSettingsUI.java +++ b/src/sporemodder/view/dialogs/ProgramSettingsUI.java @@ -93,7 +93,7 @@ public Node getMainNode() { chooser.getExtensionFilters().add(FileManager.FILEFILTER_EXE); chooser.getExtensionFilters().add(FileManager.FILEFILTER_ALL); if (!fxcPathField.getText().isEmpty()) chooser.setInitialDirectory(new File(fxcPathField.getText()).getParentFile()); - + File result = chooser.showOpenDialog(UIManager.get().getScene().getWindow()); if (result != null) {