Skip to content

Commit

Permalink
Merge pull request #28 from German-Immersive-Railroading-Community/fi…
Browse files Browse the repository at this point in the history
…xOptionalMods

Change regex to only search for `.jar` at the end of the file name
  • Loading branch information
Shirosaka committed Sep 1, 2021
2 parents dd0274a + b961a2e commit d38691e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -84,7 +84,7 @@ private static void RefreshOptionalMods(VBox vBox) {
String fileName = filePath.toFile().getName();
final CheckBox chkBox = new CheckBox();
chkBox.setSelected(FileUtil.SETTINGS.optionalMods.contains(fileName));
chkBox.setText(fileName.split("\\.")[0]);
chkBox.setText(fileName.split("\\.jar$")[0]);
chkBox.setOnAction(ev -> {
if(chkBox.isIndeterminate())
return;
Expand Down

0 comments on commit d38691e

Please sign in to comment.