Skip to content

Commit

Permalink
Make uniqueTag go synchronized with mod name in Create New Project UI
Browse files Browse the repository at this point in the history
  • Loading branch information
emd4600 committed Oct 12, 2024
1 parent 92c7ee6 commit 4a95460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/sporemodder/view/dialogs/CreateProjectUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) -> {
Expand Down
2 changes: 1 addition & 1 deletion src/sporemodder/view/dialogs/ProgramSettingsUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4a95460

Please sign in to comment.